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:
00539757
Views:
32
I suggest you use the _shellexecute class in the FFC _environ.vcx claslib that is included with VFP6, it supports this and also parameters. FOr vfp6.exe, you would probably pass the PRG/APP/EXE file name and not a statement like DO filename.

Ken

>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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform