calling perl from batch file?

chariebrown

New member
I have a perl script that passes in a directory. I am using windows. I want to be able to call this script from any location on the computer. So I created a batch file in my path to call the script. The problem is in order to have this work correctly, the user has to type in the full path when calling the batch script. ie. the "." (current directory) shortcut does not get translated when passed into the batch script.

Is there a way I can pass in the current directory into the batch script. the %cd% environment variable returns the directory of the PATH, and is not what I am looking for.

Thanks
 
Back
Top