Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Running command line external programs
Message
 
 
To
22/01/2009 17:45:27
Scott Sherman
Puyallup Tribal Health Authority
Tacoma, Washington, United States
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
MS SQL Server
Application:
Desktop
Miscellaneous
Thread ID:
01376420
Message ID:
01376424
Views:
15
>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--
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform