LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Question about calling batch file by using the System Exec+.vi?

Hi

I have a problem about calling batch file. I know that the system exec is equivalent to "run" in Windows. I called the batch file c:\rtxdos\bs\ch0.bat successfully in the "run" but it didn't work in the LabVIEW program. The dos prompt had an error message "Bad command or file name" and it just happen when I call this batch file in LabVIEW. Why?

Bill.
0 Kudos
Message 1 of 3
(2,878 Views)
Hi,

Try to set the "working directory" parameter of System exec.vi to the directory where the batch file is located. It may help.

Good luck.

Oleg Chutko.
Message 2 of 3
(2,878 Views)
Yes, I tried and worked properly. Thanks

Bill.
0 Kudos
Message 3 of 3
(2,878 Views)