05-29-2015 06:09 PM
Hi all,
Attached is the sub vi that i am running in my main application. I run it twice and change the directory of the file to run. It appears that after i run this vi that i cant change the directory and it tries to run a file from the incorrect directory. Does anyone have any advice on how to fix this issue?
05-29-2015 09:17 PM
05-30-2015 02:27 PM
05-30-2015 02:35 PM
05-30-2015 03:30 PM
05-30-2015 03:36 PM
05-30-2015 03:59 PM
05-30-2015 07:48 PM
05-30-2015 11:45 PM
@matt198717 wrote:
Hi all,
Attached is the sub vi that i am running in my main application. I run it twice and change the directory of the file to run. It appears that after i run this vi that i cant change the directory and it tries to run a file from the incorrect directory. Does anyone have any advice on how to fix this issue?
I am not sure, if I understand exactly the problem, but do you really need the cmd /c start some_executable.exe. This executes a command prompt window, which executes another command prompt window, where your executable runs.
You can just use cmd /c some_executable.exe some_parameters_if_needed, and you don't need any quotation marks, even if the executable has command line parameters. I you want that the executable runs in particular directory, wire this path to the 'working directory' of System Exec.vi