Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Programatically changing shortcut properties.
Message
 
 
To
13/01/2005 22:13:41
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00977040
Message ID:
00977042
Views:
49
>Does anyone know how to go about changing Windows desktop shortcut properties programatically?
oShell = CreateObject("WScript.Shell")
* Get desktop folder
lcDesktop = oShell.SpecialFolders("Desktop")
lcShortcutName = "whatever.lnk"
* Create shortcut if it doesn't exists or open existing one
oLink = oShell.CreateShortcut ( ADDBS(lcDesktop) + lcShortcutName )
* Set/Change properties here
....
oLink.Save()
--sb--
Previous
Reply
Map
View

Click here to load this message in the networking platform