| Benjamin Outram 2004-07-28, 9:09 pm |
| Hi,
Thanks for your help.
I don't know before execution whether the target is going to be a DOS
program or not.
If I launch 32-bit programs and destroy cmd.exe / command.com then the
program itself doesn't exit, just the command `wrapper`.
Henry Paul wrote:
> "cmd.exe" in simple terms is an emulator that that makes the program think
> it is running in DOS. It also isolates the application in its own memory
> space so if it suffers an error it will not crash the entire OS.
>
> When some applications end, you are returned to a command prompt, but not
> always. It depends on the program being run. The result of not killing the
> cmd.exe process would leave you with a command prompt window open.
>
> To see this in action, go to Start|Run ping 127.0.0.1
>
> The program will run an instance of cmd.exe, run the ping command, and close
> the cmd.exe command when finished.
>
|