From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Cannot TerminateExecutable on a batch file.

I am using LaunchExecutable to run a batch file that starts an executable and then runs thru a series of commands. When I use TerminateExecutable nothing happens. What am I missing?
0 Kudos
Message 1 of 2
(2,587 Views)
Here's the only hint I found, from the TerminateExecutable help.
"If you launch a 16-bit executable under Windows NT, TerminateExecutable cannot attempt to terminate the launched executable process. In addition, ExecutableHasTerminated cannot determine whether the launched executable process has terminated."
Under Windows 95, the DOS prompt (including processing batch files) was a 16 bit app. I don't know if newer Windows (NT 4.0, 2000, XP) have a 16 bit or 32 bit app for the command prompt.
0 Kudos
Message 2 of 2
(2,587 Views)