Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Parameters to exe
Message
De
03/01/2002 05:57:15
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00600039
Message ID:
00600159
Vues:
30
>>Hi
>>
>>I'm trying to send parameters to an executable created with vfp 6.
>>I have problems when I try to use
>>miexe.exe -clean
>>miexe.exe /clean
>>I think that is the -c modifier
>>How can I override this?
>>
>>Not using - or / ?
>>
>You're right, you cannot use - or / and you cannot overwrite that. Just use
miexe.exe clean
More correctly, you can use "-" (or "/") at the beginning of an argument to an executable, but there are certain ones you have to avoid. In particular, -c will override any config.fpw file associate with the program. In your case, it assumed that you had a config file called "lean" in the fox path.

I've written a class that handles command-line arguments in a Linux/Unix-style manner, and the only catch in using the class at this time is to not use one of the reserved letters immediately after the first "-". According to the documentation, they are -a, -c, -d, -l, -r, and -t. There are fout others that involve the slash and are full words, involving registration of .dll components.
David M. Stowell
Ravenslake Consulting
Chicago, Illinois

e-mail: davidstowell@ravenslakeconsulting.com
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform