LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

System exec not correctly calling batch file

I'm using system exec to call a batch file to run an executable.
The execuatable can be run with various arguments.
The batch file, also written dynamically in Labview works fine if you use the command line or "Start" then "Run" to call it.
However when Labview calls the batch file, the other arguements just seem to get "left behind somewhere".

Any suggestions?
0 Kudos
Message 1 of 3
(3,092 Views)
Indeed curious, but make sure that the working directory is wired properly. Sometimes it causes problems.
0 Kudos
Message 2 of 3
(3,092 Views)
Something that you might try is to download the lvwutil32.zip file from NI. This contains a number of windows utilities. Try the "Run Application.vi". We have had fewer difficulties with this vi than with the System Exec.vi (we are running Windows NT 4). I know that Run Application.vi does accept arguments and pass them correctly to a batch file.

Rob
0 Kudos
Message 3 of 3
(3,092 Views)