Hi all,
I have used sys exec cmd to call a DOS .exe program from my LabVIEW but now I need to pass in a parameters.
If I need pass in a parameter to that executable like "xx.exe
parameter", can I concatenate "xx" and "parameter" and C/R to the
sys exec vi?
Thanks in advance.
You should be able to concat the command and parameters. I've heard of cases where this didn't work well. If it doesn't, try inputting the command string into SysExec's "command line" input, and the parameter string into the "standard input".
Yes, it should work for cases such as launching executables which accept command line arguments; if you create a simple text file named text.txt on your C drive, the following string used for the "command line" input should open that text file in notepad:
Also, if this doesn't work, you can follow the advice found in the help for the function and create a batch file which will run the executable and then run that batch file.