Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Want to Use Command-Line Switches in EXE
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00470441
Message ID:
00470443
Vues:
35
>Is it possible to have our own command-line switches in an EXE (similar to how VFP6.exe works), without using the CONFIG.FPW file? In other words, I would like to run a program such as this: MYPROG.EXE -oMyOption
>
>The "-o" switch could be any character, as necessary. I'd like the EXE to be able to parse the command-line options.
>
>Thanks!
>Michael Reynolds

Include a LPARAMETERS statement in the main .PRG of your .EXE. All things that are passed to your code from the startup line (that's not handled already by VFP) will be passed to your .EXE as a string. If nothing is passed to you, the parameter will be a logical .F. or EMPTY() value.
Fred
Microsoft Visual FoxPro MVP

foxcentral.net
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform