LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to run external application?

Im curious how, assuming its possible, to run an external application?  Basically in Labview I create a .bat file that does various things with files i need too.  Then i want to run it.  Whats the easiest way to do this?
0 Kudos
Message 1 of 4
(2,941 Views)
Use "System Exec.vi", it's on function palette, under Communition.
 
 
George Zou
George Zou
0 Kudos
Message 2 of 4
(2,935 Views)
Thanks.  I am having some problems though.  I had somebody help me figure out this problem at work but unfortunately he is not around to ask now and its doing it again even though i believe im doing the exact same thing.
 
So basically i am using this to call a batch file.  We came to the conclusion last week that the Directory you give System Exec must be in the Windows path(which maybe wrong, but thats what fixed it for us).
 
So my basic setup is cmd.exe as a static string to the command prompt input, setupdisk.bat as the standard input also as a static string, and C:\winnt as the working directory.  But when i run it this is the standard output.
 
Microsoft Windows XP [Version 5.1.2600]
(C) Copyright 1985-2001 Microsoft Corp.
C:\WINNT>More?
 
Basically the dos window just pops up and then disappears real fast.

Message Edited by Arsenic on 08-01-2005 03:49 PM

0 Kudos
Message 3 of 4
(2,912 Views)
"path" can be any path, as long as you use the full path/absolute path.
 
Simply put the full path of setupdisk.bat in the command line.   No need to specify cmd.exe.
 
 
George Zou
George Zou
0 Kudos
Message 4 of 4
(2,896 Views)