LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

System exec.vi

When there are DOS .bat and .exe share the same file names, what would System exec.vi tried to do? It seems to execute .exe file over .bat. Anyone tried this?
0 Kudos
Message 1 of 4
(2,836 Views)
This is correct. Also if there is a system command ("dir" for example) then a dir.bat will not be executed if the command "dir" is sent.

I think the preferred order is System command > Com > exe > bat, but I'm open to corrections.

Shane.
Using LV 6.1 and 8.2.1 on W2k (SP4) and WXP (SP2)
0 Kudos
Message 2 of 4
(2,832 Views)
Shane,

My memory confirms what you just posted:

"I think the preferred order is System command > Com > exe > bat".

From what I recall: com > exe > bat

Unless the extention is specified..

So specifying the extention in the System Exec.vi should spawn the appropriate one.

-JLV-
Message 3 of 4
(2,816 Views)
Thanks guys.
The system exec vi has the command line input. I thought I could use this to indicate which file type (dos comd or .exec or .bat..) I am trying to execute...
0 Kudos
Message 4 of 4
(2,810 Views)