Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Closing DOS window
Message
De
04/12/2001 08:06:24
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00588660
Message ID:
00589162
Vues:
27
>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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform