03-24-2020 02:39 PM
Hello all, I have created a simple vi that will run notepad and open a .txt file. It also runs an executable that uploads the data from the .txt file to a database. It works fine on the development machine in both ide mode and as an executable. I install the build onto another computer and once installed, proceed to run the executable and the vi runs but it seems the command prompt never gets called.
I can open the command prompt and run the commands and they work just fine.
C:\Windows\System32\notepad.exe
cmd /c C:\specsheetsConsole\build\exe.win-amd64-3.6\labviewdbupload.exe
Is there any ideas that could help with this issue?
Solved! Go to Solution.
03-24-2020 02:58 PM
Well, what's the difference between the computers (OS version, etc.)?
Does it work better if you run the exe with admin privileges (right-click... run as administrator)?
03-25-2020 08:12 AM
Set the Working directory of System Exec to the called .exe's folder.
/Y
03-25-2020 05:12 PM
Thank you Yamaeda. I had hard coded the "Working directory" variable in the sub vi then used the sub for another call.