How to execute script on files in another directory?

Hi Guys,

Is there any way I can execute my bash script on files in a different folder than what the script is in? Here is an excerpt of my script:

 
#!/usr/bin/bash
input_path="/cygdrive/c/files"
output_path="/cygdrive/c/files/data"
#script uses files from /cygdrive/c/files directory, processes them and saves them to "/cygdrive/c/files/data" directory
#processing; BODY OF SCRIPT

My script is in /cygdrive/c/unix and I want execute it from there but use the files in the /cygdrive/c/files directory and save the files in the /cygdrive/c/files/data directory.

How can I do this? Do I have to set the path somewhere.

Thanks in advance for your help.

Just use the full path to the files using your path variables and concatening them with the filenames :

file="test.txt"
process "$input_path/$file" "$output_path/$file"