Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Running a DOS Command
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Problèmes
Divers
Thread ID:
00664751
Message ID:
00666014
Vues:
17
>Hi,
>
>A need run a DOS Command. I run it using a class to execute external proccess (process.vcx), but this is not the source of the problem because i test the command from the windows explorer and get the same results.
>
>This work fine in WinXP pro, because for default close the DOS box after a .bat file run, but in 9x is necesary hit the "X" button to close.
>
>I know to build a pif file and configure the option "close when the command finish", but i need run it programatically and I DON'T WAN USE A PIF FILe, except if this can be created in the fly.
>
>I try this:
>
>format a:/q
>exit
>
>In XP: The DOS windows close..
>In 98:The DOS windows stay visible..
>
>Thanks


You can use the Windows Scripting Host but you'll have to make sure it's available in the machine you're going to run this code. ITOH you can try the download section and propably you'll find something useful.

Puedes usar el Windows Scripting Host (WSH) pero debes asegurarte de que esta disponible en la PC en la que vas a correr el programa, en Win98 viene por defecto pero en Win95 tienes que hacer varios downloads desde el sitio de microsoft. Tambien puedes intentar en la seccion de downloads, si mal no recuerdo creo que hay una clase precisamente para este tipo de cosas.

Hope this can be helpful,

Enmanuel
I'm a mixture of Albert Einstein and Arnold Schwarzenegger. The only trouble is that I got Einstein's body and Schwarzenegger's brain
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform