Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Closing DOS window
Message
From
04/12/2001 08:06:24
 
 
To
03/12/2001 08:41:37
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00588660
Message ID:
00589162
Views:
26
>An application runs DOS commands using the "!" command.
>When the DOS command completes the operator has to exit the DOS window manually for the program to proceed.
>How can that DOS window be closed from the Fox program?

Create a .PIF for the app with the check box for Close on Exit checked, and the problem goes away. Better, change the default PIF for DOS apps (not FOXRUN.PIF, but the system DEFAULT PIF file with this behavior, and use API_APPRUN.

API_APPRUN also exposes a method to permit you to kill a process launched by it programmatically. See the Files section.
EMail: EdR@edrauh.com
"See, the sun is going down..."
"No, the horizon is moving up!"
- Firesign Theater


NT and Win2K FAQ .. cWashington WSH/ADSI/WMI site
MS WSH site ........... WSH FAQ Site
Wrox Press .............. Win32 Scripting Journal
eSolutions Services, LLC

The Surgeon General has determined that prolonged exposure to the Windows Script Host may be addictive to laboratory mice and codemonkeys
Previous
Reply
Map
View

Click here to load this message in the networking platform