Code Comments
Programming Forum and web based access to our favorite programming groups.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 clo se > the cmd.exe command when finished. >
Post Follow-up to this message
Show a Printable Version
Email This Page to Someone!
Receive updates to this thread
Powered by vBulletin
Copyright 2000-2006 Jelsoft Enterprises Limited.