Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Read error from Run command
Message
De
12/11/2002 14:08:41
 
 
À
12/11/2002 14:04:31
Vicki Miles
Vlm International, Inc.
Mishawaka, Indiana, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00721753
Message ID:
00721756
Vues:
18
>Is there a way to launch a DOS command and read any resulting error conditions?
>

Yes - use my API_APPRUN class to launch the executable, and it will allow you to retrieve the termination code. It's available in the download section. API_APPRUN returns success if it runs, but lets you retrieve the return code at your leisure.

If the output of lpr is not a termination code, but is a string written to the console, you'll need to pipe the output to a file and parse the result.
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
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform