LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

run a program with system exec.vi

hi

I've got a problem with system exec.

When I launch a simple program like :  c:\windows\notepad.exe it works very well.

But when I launch a program with parameters, it doesn't.

here is the command line:   c:\bmd.exe a.bmd a.txt ffffffff ffffffff  

When I put this command line in a cmd windows it works perfectly. It don't understand...


Any idea?

0 Kudos
Message 1 of 4
(3,112 Views)
Doese this work dirrectly from the command prompt? I have used parameters with suscess in the past like launching IE with parameters.
 
Paul
Paul Falkenstein
Coleman Technologies Inc.
CLA, CPI, AIA-Vision
Labview 4.0- 2013, RT, Vision, FPGA
0 Kudos
Message 2 of 4
(3,102 Views)

Is it a DOS program you are trying to execute under Windows?

If so insert command.com /C before the command.

~~~~~~~~~~~~~~~~~~~~~~~~~~
"It’s the questions that drive us.”
~~~~~~~~~~~~~~~~~~~~~~~~~~
0 Kudos
Message 3 of 4
(3,088 Views)
Hi Julesjay,

I found out that if the command string didn't include the path of the executable (start) the program would fail (at least with matlab executables) So make sure the path of the exe is included in the command string.

Ton
Free Code Capture Tool! Version 2.1.3 with comments, web-upload, back-save and snippets!
Nederlandse LabVIEW user groep www.lvug.nl
My LabVIEW Ideas

LabVIEW, programming like it should be!
0 Kudos
Message 4 of 4
(3,077 Views)