I have written a DOS application and use the "system exec" sub-vi to execture. It was running fine until I made a change to the DOS application. The System Exec insists on executing the old version of the DOS program. When I change names of the application, I'll then get an error code 2. I have a suspicion that the DOS executable is copied someplace and it's that copy the System Exec insists on running.
The DOS executable resides on another PC on the network whose directory I've mapped to a drive letter. I can copy the executable to a local directory, the same one with my VI, and it doesn't care. I run the program from the command line, and it executes as expected and produces the new output. The VI app runs the software, too, but produces the output of the old version.
I've modified the command string with "cmd /c" prepended to the actual command; e.g.,
Original: "ppt arg1 arg2" -> Old output
Update: "cmd /c ppt arg1 arg2" -> New output
What is going on withing the system exec that it gets so particular?
Thanks!