Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
ShellExecute Question
Message
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Miscellaneous
Thread ID:
00539706
Message ID:
00539818
Views:
18
>I have:
>
>cAppName = "d:\program files\microsoft\visual studio\vfp98\vfp6.exe"
>
>DECLARE INTEGER ShellExecute IN SHELL32 ;
>INTEGER, STRING, STRING, STRING, STRING, INTEGER
>
>=ShellExecute(hWnd, 'open', cAppName, '', '', 5)
>
>
>How do I pass a command to VFP, such as 'DO SomeProgram'?
>
>Thanks

If you want to run prg or app than following should work
 cProgramName = "SomeProgram"
=ShellExecute(hWnd, 'open', cAppName, cProgramName, '', 5)
You can also take a look at file#9508.
--sb--
Previous
Reply
Map
View

Click here to load this message in the networking platform