Include LPARAMETERS statement into main program of you project and than call your exe with parameters separated by spaces. Just remember that all parameters're passed into EXE as a string.
LPARAMETERS tcPar1, tcPar2, tcPar3
...
myapp.exe Param1 Param2 Param3
Don't use '-' in front of parameters because it could conflict with VFP commnad line switches.
>Hi,
>
>Is it possible to pass a value to an vfp exe as a command line value?
>
>e.g. 'MyProg.exe -training' or something like this.
>
>Thank you in advance for your help.
>
>Regards,
>Mike Mayo
--sb--