tpcolson

how to pass arguments to exe from model?

Discussion created by tpcolson Champion on Jul 6, 2011
Latest reply on Jul 7, 2011 by lpugh01
how does one pass arguments from a python script or model to a cmd exe? E.g. I need to pass
"C:\temp\program.exe -a 1 -b a" where "-a" is user-selected from a drop-down (range 1-10) and "-b" is user-selected from a drop-down (range a-z)

I tried attached the exe to a script and setting the two arguments in the parameters tab of the script properties but I get an error:

Executing: Script1

Start Time: Wed Jul 06 22:15:36 2011

Running script Script1...

ERROR

000714: Error in script Script1.

Error in executing: C:\temp\program.exe -a 1 -b a"

Failed to execute (Script1).

Failed at Wed Jul 06 22:15:37 2011 (Elapsed Time: 1.00 seconds)

Outcomes