See
How to pass parameters to VFP EXE FAQ #17861 and
Exiting Visual FoxPro returning an error level FAQ #7767
> Can an Exe be developed in FoxPro, which on running through Command Line in DOS, accept a parameter value and then return a value after a gap or in the next line ?
> I am using a function which accepts a value and does some process and then returns a new value. This I want to do through Commannd line in DOS without any User Interface.
> Please let me know how can it be done in VFP.
> Thanks in Advance.
>
--sb--