Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Using CreateProcess repeatedly
Message
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Miscellaneous
Thread ID:
00504932
Message ID:
00505445
Views:
29
>George,
>
>You've lost me. The DOS window should be set to close itself once the process terminates

Sorry, David, I may not be thinking clearly so try to bear with me. Please keep in mind that this is under Win98SE as well.

If you launch a DOS app directly by double clicking it in Explorer, after it terminatest, you have to manually close the window. However, if you launch it from a shortcut (in the case of a DOS program a PIF file), you can specify to close the window when it terminates, if you don't it stays open. Tim had said that it's a 32 bit program, and I don't know if that makes a difference.

If this is the case (namely that the window doesn't close), I would guess that you'd launch it via a short cut rather than passing the executable name. Also, I just realized I never tried to launch a DOS app with the WSH.
>>What got me wondering (and I've never tried this) was closing the DOS window. Would this work in above?< Thinking about who he's asking the question of makes him think that this post wouldn't be here if not >
George

Ubi caritas et amor, deus ibi est
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform