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:
00470823
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.
>

You can specify parameters accepted from the command line by adding a PARAMETERS or LPARAMETERS statement to the beginning of your main program - you'll have to parse the parameters, and a few -letter combinations are reserved by the VFP runtime, so youy can'tr use them.
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