Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to call a ShortCut...
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00870164
Message ID:
00870169
Views:
29
This message has been marked as the solution to the initial question of the thread.
>I need to run an .exe with the run commande.
>The problem is that this EXE need a parameter like this:
>
>Select Myfld1,MyFld2 from data1 into data2 where myfld1 in (select myfld1 from data3)
>
>I cannot use the run commande with the parameter so I am calling a .Bat.
>
>But running a shurtcut is better.
>
>How do I run a shortcut from VFP?

Jean-Rene,

If the Windows Script Host is an option:
oShell = CREATEOBJECT("WScript.Shell")
oShell.Run("MyShortCut.lnk")
You can add parameters to specify the window style and whether or not VFP should wait until the program closes.
George

Ubi caritas et amor, deus ibi est
Previous
Reply
Map
View

Click here to load this message in the networking platform