Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Shortcut name problem
Message
From
06/05/2005 00:13:45
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Other
Title:
Shortcut name problem
Environment versions
Visual FoxPro:
VFP 6
OS:
Windows '98
Network:
Windows 98
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01011499
Message ID:
01011499
Views:
66
Dear Experts

To create shortcut, on desktop, the following codes work fine but the problem

is the shortcut name appears as "TEST" as written in fourth line.

How to place the shortcut name from a variable

For example
variable1="system"
The shortcut name must be system

Please help
cfolder2=alltrim("d:\System\gin0405")
Shell = CreateObject("WScript.Shell")
DesktopPath = Shell.SpecialFolders("Desktop")
link = Shell.CreateShortcut(DesktopPath+"\test.lnk")
*link.Description = str1
link.HotKey = "CTRL+ALT+SHIFT+X"
link.IconLocation = cfolder2+"\bitmaps\icon.ico"
link.TargetPath = cfolder2+"\accounts.exe"
link.WindowStyle = 1
link.WorkingDirectory = cfolder2
link.Save()
Next
Reply
Map
View

Click here to load this message in the networking platform