02-19-2016 02:18 PM
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.
Solved! Go to Solution.
02-19-2016 03:09 PM
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?
02-22-2016 10:12 AM
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.