NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

Using Quotation Mark in an Argument in Call Executable

Hello all,

 

I am trying to use Call Executable to do what I would normally do in CMD like this:

 

C:\My Document\My_Prog.exe "C:\My Document\file1.tch" "C:\My Document\file2.tch"

 

The two argument locations are stored in a locals.filename1 and locals.filename2.

 

I don't know how to make sure that the arguments are sent in that exact format with the quotation marks.

 

Thanks,

Chase

0 Kudos
Message 1 of 2
(3,077 Views)

If the local variables do not contain quotes in them, the argument expression would be:

 

"\"" + Locals.filename1 + "\" \"" + Locals.filename2 + "\""

Message 2 of 2
(3,072 Views)