Win95 DOS Shell versus WinNT Dos Shell
-
We have a C++ app which ran on Win95 using the C++ convention to call another exe as system("Myapp.exe"), then calls another exe next line system("Myapp1.exe"). In Win95 these two programs start automatically, using command.exe. Everything ok. When we run the same application on NT, system("Myapp.exe"), line will wait unti Myapp.exe finishes before starting Myapp1.exe.This executes cmd.exe. Obviously CreateProcess should have been used, but are there any workarounds without changing the code. To force the exe's to start. Thanks. Gerry.
-
We have a C++ app which ran on Win95 using the C++ convention to call another exe as system("Myapp.exe"), then calls another exe next line system("Myapp1.exe"). In Win95 these two programs start automatically, using command.exe. Everything ok. When we run the same application on NT, system("Myapp.exe"), line will wait unti Myapp.exe finishes before starting Myapp1.exe.This executes cmd.exe. Obviously CreateProcess should have been used, but are there any workarounds without changing the code. To force the exe's to start. Thanks. Gerry.
Try it with "start Myapp.exe" instead. --Mike-- http://home.inreach.com/mdunn/ The preferred snack of 4 out of 5 Lounge readers.
-
Try it with "start Myapp.exe" instead. --Mike-- http://home.inreach.com/mdunn/ The preferred snack of 4 out of 5 Lounge readers.
I've already done this in a batch file, but in the C++ compiled code, it has system("Myapp.exe").....I'm trying desperately not to change any code..... I was going to change the environment var in the Registry, from cmd.exe to command.exe....this works...but results undefined . Thanks. Gerry.