Skip to main content
Question

Pass published parameter to command prompt

  • February 26, 2018
  • 1 reply
  • 45 views

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

1 reply

fmelizard
Contributor
Forum|alt.badge.img+17
  • Contributor
  • February 26, 2018

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


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings