Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Passing paramaters to an exe from command line
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00181105
Message ID:
00296740
Vues:
16
>Hi,
>
>Your method only works when the argument that you pass in containing no '\' character. Otherwise, you will get a syntax error.
>
>example: myapp.exe "c:\temp\test" will give you syntax error. Sorry about the first message.
>Thanks.

Sorry, that works just fine for me, with a main program that starts with an LPARAMETERS or PARAMETERS statement. It takes any command line value you like, as long as you remember to properly quote-encapsulte the argument. You may find that your example works if you leave off the quote encapsulation.

There are command line arguments that start with / or - that may get stripped from the command line because the VFP engine uses 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