Skip to main content

Hi,

I am running a workbench which uses system caller to run a bat file ad that bat file in turn runs a exe file. When I run the workbench from any location other than the same folder as the bat and exe files it fails to execute. What I want to know is how can I pass through a published parameter value to the command prompt temp variable %%1 so I can set a folder for it to be run from?

Thanks,

Clare

Hi @clareeaston You probably need to use "cd /d <dir>" in your batch script. Please see pass-pub-param.fmwt which has two published parameters in the SystemCaller, one for the batch file and the other for the batch file parameter pointing to the directory to run the executable from.


Reply