>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