Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Need to start a .EXE and pass it parameters
Message
 
À
07/11/2001 13:11:19
Information générale
Forum:
Visual Basic
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00578608
Message ID:
00578660
Vues:
16
>I have a one form VB 6 application that is an image viewer. I need to run the .exe from another application and pass parameters from the calling program to my app.
>How can I do this?
>I currently can fire the app off using the following commands:
> MyAppID = Shell(filepath, 1) 'filepath is the path to the .exe file
> AppActivate MyAppID
>but this does not allow me to pass any variables.
>
>Any ideas would be greatly appreciated.

You can call your app using a parameter similar to this:
shell "notepad.exe test.txt"
From your VB app, use the COMMAND statement that will give you the parameter passed:
msgbox COMMAND
Éric Moreau, MCPD, Visual Developer - Visual Basic MVP
Conseiller Principal / Senior Consultant
Moer inc.
http://www.emoreau.com
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform