Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Run a DOS Command From Visual Basic
Message
De
13/05/1999 07:42:22
 
 
À
12/05/1999 04:31:07
Information générale
Forum:
Visual Basic
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00217687
Message ID:
00218286
Vues:
14
>I need to run a DOS Command from Visual Basic without disturbing the user interface. Can anyone help me out??
>

If the native SHELL command won't do what you need, you can use the Win32 API call CreateProcess() to launch an application visibly or invisibly and track when it terminates; there's an excellent example of how to use this in Daniel Appleman's Visual Basic Programmer's Guide to the Win32 API in Chapter 14; there's a vb progrject Launch.vbp included on the CD that contains sample source code that can be used to launch and track applications.

>Thanks in advance.
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