>What is the best way to run a command line program from FoxPro?
>
>I need to run a command line like the following with parameters. It runs fine from Windows Run but I need FoxPro to do it for me.
>
>"c:\program files\program\program.exe" /script=c:\tmp\script.txt
There're many ways to run external program from VFP. Which one to chose depends on your requirements:
- VFP RUN command
- SHELLEXECUTE() Windows API function
- WSH Run method
-
API_APPRUN in .VCX form
--sb--