Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Running DOS Commands and Returning Result Codes?
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00080871
Message ID:
00080884
Vues:
30
>>>I need to be able to run a DOS command (in particular the "net use" command) and see any results given by the command. In other words, instead of the results being printed to the screen I need them to be returned to my foxpro program. Any ideas? Hmm...I'm stymied.
>>
>>TRY "run net use >somefile"
>>then examine somefile for the output and you can work with it from there.
>
>That was the first thought I had too, but the problem is in NT 3.51 (we are running a citrix server) the output is still printed to the screen.

you could try "run net use >>somefile" or put it in a .bat file and execute that.
"Build a man a fire, and he's warm for a day.
Set a man on fire, and he's warm for the rest of his life."
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform