LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Calling a visual basic executable with command line arguments using LABView

Solved!
Go to solution

Hi all,

I am trying to call a visual basic executable with a command line argument using LABView 2014. What I am trying to accomplish is running an executable that communicates with a device through a com port. So, I would like to open the .exe with a command line argument to communicate through com 3 using the Systen Exec VI. It looks like the command prompt window flashes and closes and then nothing happens. Not a lot of discussions about this on the forum. Any help would be greatly appreciated. Thank you.

0 Kudos
Message 1 of 3
(2,886 Views)
Solution
Accepted by topic author FireChief16

With some programs, instead of passing in the string:

 

Somefile.exe

 

You instead need to use:

 

cmd /c "C:\Full Path\to the EXE\Somefile.exe"

 

Can you tell us what exactly you're trying to run?

Message 2 of 3
(2,867 Views)

Thanks so much for the suggestion. It was a combination of needing to add the cmd /c text to the string as well as a few syntax errors in the command on my part. However, it was your reply that sent me down the right path. Much appreciated.

0 Kudos
Message 3 of 3
(2,798 Views)