LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Open Exe File?

Hey,
 
I think I got probably the dumbest question here.. but, here goes.
 
I want my labview program to open an exe file, so i stick the "open file" sub-vi right outside my program loop, wire a data path, Then I connect the error out to the loop.
 
Using "highlight", I see that it finds the file and says "ok: but the file won't open...
 
am I supposed to wire anything else?
 
thanks
Aquaphire

---USING LABVIEW 6.1---
0 Kudos
Message 1 of 6
(3,059 Views)

I'm assuming you want to RUN the file.

If so, use the System Exec VI in the Communications palette.


___________________
Try to take over the world!
Message 2 of 6
(3,057 Views)
Thanks erm... I tried wiring the file path onto: "working directory"
and putting an empty string on "command line" but it still doesnt work... 😞
Aquaphire

---USING LABVIEW 6.1---
0 Kudos
Message 3 of 6
(3,055 Views)
You have to input the exe file's name as a string into the command line input, just as if you were calling it from a command prompt.  You can also wire the entire path with file name as a string into the command line input and then you don't have to wire anything into the working directory input.  If you have other files in your working directory that your exe needs to access, you could put the path into the working directory input and the  exe filename only into the command line input.
- tbob

Inventor of the WORM Global
Message 4 of 6
(3,038 Views)
got it. thanks :)
Aquaphire

---USING LABVIEW 6.1---
0 Kudos
Message 5 of 6
(3,031 Views)
Here is a vi that you might find useful.



Joe.
"NOTHING IS EVER EASY"
0 Kudos
Message 6 of 6
(3,012 Views)