Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Creating a desktop shortcut
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
01149668
Message ID:
01149720
Views:
25
>Actually this works. You have to pass the command line
>parameters to
>
>oMyShortCut.Arguments = cParameters
>
>
>Does anyone know how to rename a shortcut?

A shortcut is just a file. You can rename it as any other file. For example,
lcShortcut = "whatever.lnk"

RENAME (ADDBS(strDesktop) + lcShortcut) TO (ADDBS(strDesktop) + FORCEEXT("New Shortcut Name", "lnk"))
* or
oShortcut = oFso.GetFile(ADDBS(strDesktop) + lcShortcut)
oShortcut.Name = FORCEEXT("New Shortcut Name", "lnk")
--sb--
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform