Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Command-line parameters for batch processing
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00103958
Message ID:
00103962
Vues:
22
>I need the ability to have my application process an input file in batch mode. I would like to be able to issue a command like this:
>
>myapp.exe -b c:\mydir\input.txt
>
>I am using -b as an example of a switch which would signify to my program to run in batch mode instead of the normal interactive mode. After the -b switch the user could specify drive, dir and file name to process. Anyone have any ideas on how to program this?
>
>Kind Regards,
>
>Mat Kennedy

If you e.g. start your app by command 'myapp.exe \b c:\input.txt' and first line in Main.Prg is 'PARAMETER c1,c2' then you app will accept c1='\b' and c2='c:\input.txt', and app logics will handle the rest.
Edward Pikman
Independent Consultant
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform