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:
00505613
Views:
21
George,

In Win98SE, if I launch something like xcopy, and click the Properties button I can check close window on exit, which will create a shortcut that stores the data from the property page. But you don't have to launch the program from the shortcut, double clicking xcopy.exe will run and close.

There get to be fewer and fewer DOS commands that I tend to use, but they work fine from either ShellExecute or WSH.

>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.
df (was a 10 time MVP)

df FoxPro website
FoxPro Wiki site online, editable knowledgebase
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform