Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Run dos command, get result in string
Message
De
18/12/2005 16:34:02
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Versions des environnements
Visual FoxPro:
VFP 9
Divers
Thread ID:
01079030
Message ID:
01079040
Vues:
14
>Hi All,
>
>How to run a dos command in VFP and get the result in a string. Thanks beforehand.

One way is to redirect the DOS command output to a file, e.g.
SomeDOSCommand <optional parameters> >C:\DOSCommandOutput.txt
You can then use FILETOSTR() in VFP to read in the contents of C:\DOSCommandOutput.txt .
Regards. Al

"Violence is the last refuge of the incompetent." -- Isaac Asimov
"Never let your sense of morals prevent you from doing what is right." -- Isaac Asimov

Neither a despot, nor a doormat, be

Every app wants to be a database app when it grows up
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform