Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Create shortcut on desktop
Message
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Miscellaneous
Thread ID:
00861944
Message ID:
00862042
Views:
14
>I used the code below on windows ME
>
>* Declare the function
>DECLARE INTEGER CreateShellLink IN LNKFILES.DLL;
>STRING @lpzLinkFileName, STRING @lpzExeFileName
>
>lnErrorCode = CreateShellLink("c:\windows\desktop\dental.lnk","c:\dent3\dental.exe")
>
>*******************
>
>Can I use this code also for windows XP?

You'd probably be better off getting the user's desktop first to determine the location. Under XP, this can be done using the WScript.Shell object. Take a look at the series of articles that the late Ed Rauh and I did on the Windows Script Host. It's available on-line beginning with the September, 2000 issue of the VFUG newsletter (www.vfug.org). The Shell object was covered in the October issue and covers this subject.
George

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

Click here to load this message in the networking platform