Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Shortcuts
Message
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Title:
Miscellaneous
Thread ID:
00355445
Message ID:
00355460
Views:
27
Thanks Andrew

I had not of WSH.

Ken


>Ken, you can do this with the Windows Scripting Host.
>
>(lifted from the MSDN CreateShortcut Method entry)
>
>osh = CreateObject('WScript.Shell')
>oShellLink = osh.CreateShortcut("Current Script.lnk")
>oShellLink.TargetPath = WScript.ScriptFullName
>oShellLink.Save
>
>oUrlLink = WshShell.CreateShortcut("Microsoft Web Site.URL")
>oUrlLink.TargetPath = "http://www.microsoft.com"
>oUrlLink.Save
>
>Cheers,
>
>Andrew
>

>>How can I read the shortcuts (*.lnk) files too determine paths?
>>How does one create these files and place them on the desktop?
Ken Wardwell
Previous
Reply
Map
View

Click here to load this message in the networking platform