Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
RUN/! Command Fail
Message
General information
Forum:
Visual FoxPro
Category:
Troubleshooting
Miscellaneous
Thread ID:
00600074
Message ID:
00600081
Views:
15
>Do you have any example?
>
>>
>>Im not a real fan of RUN, there can be some issues depending on windows version etc.
>>
>>I prefer to make a call to the WinAPI ShellExecute command
>>see
>>http://www.news2news.com/vfp/?group=91&function=138
>>for details.

yeah,
    DECLARE INTEGER ShellExecute IN shell32; 
        INTEGER hwnd, STRING lpOperation,; 
        STRING lpFile, STRING lpParameters,;  
        STRING lpDirectory, INTEGER nShowCmd 

    = ShellExecute(0, "Run", "X:\MyDir\MyExe.exe", "", "", 1)
Previous
Reply
Map
View

Click here to load this message in the networking platform