Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Running command line external programs
Message
 
 
To
22/01/2009 18:11:02
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:
01376429
Views:
8
>For a temporary solution, I created a program.cmd file and used RUN to kick it off. Some time next week, I will set up the shellexecute.

It's not very complicated
DECLARE INTEGER ShellExecute IN shell32; 
    INTEGER hwnd, STRING  lpOperation,STRING  lpFile, ; 
    STRING  lpParameters, STRING  lpDirectory, INTEGER nShowCmd
lcProgram = "C:\Windows\Notepad.exe"
lcParameters = "C:\Windows\System32\Autoexec.nt"
= ShellExecute(0, "", lcProgram, lcParameters, "", 1)
--sb--
Previous
Reply
Map
View

Click here to load this message in the networking platform