Posted By

noah on 10/26/07


Tagged

wrapper path windows name batch bat os parameters environment scripting batchfile


Versions (?)

.bat file that calls a script and passes arguments to the script


 / Published in: Other
 

URL: http://www.microsoft.com/resources/documentation/windows/xp/all/proddocs/en-us/percent.mspx?mfr=true

In a Windows batch file, this line will call the script "foo.pl" assuming that "FOO.pl" is located in any of the directories specified in the PATH environment variable.

All arguments given to the .bat file, will be passed to FOO.pl.

  1. %~dp$PATH:1FOO.pl %*

Report this snippet  

You need to login to post a comment.