Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to Create Shortcuts/Get Desktop Folder
Message
 
To
14/01/2004 11:21:21
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Miscellaneous
Thread ID:
00866766
Message ID:
00866775
Views:
24
the desktop dir shuold be

?GETENV("USERPROFILE")+"\Desktop\"

to create a shortcut try this:

oshell = CreateObject("WScript.Shell")
lnk = oshell.CreateShortcut("foo.lnk")
lnk.TargetPath = "c:\dummy.exe"
lnk.Save

HTH
Franco

>Does any one know how to create a windows shortcut programatically?
>
>And along with that determine the Desktop folder to save it into?
>
>Thanks.
>
>Bob
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform