D
Doug Sanders
I have a script that works fine when called by itself. I need to execute it
from within a form or macro.
It places a short cut to a newly created folder on the users desktop.
Here it is--- Any help would be appreciated.
Set Shell = CreateObject("WScript.Shell")
DesktopPath = Shell.SpecialFolders("Desktop")
Set link = Shell.CreateShortcut(DesktopPath & "\test.lnk")
'link.Arguments = "1 2 3"
link.Description = "test shortcut"
link.HotKey = "CTRL+F10"
link.IconLocation = "%SystemRoot%\system32\SHELL32.dll,45" 'This points to
the desired icon
link.TargetPath = "c:\blah\Test Folder"
link.WindowStyle = 3
link.WorkingDirectory = "c:\blah"
link.Save
Thanks,
Doug Sanders
from within a form or macro.
It places a short cut to a newly created folder on the users desktop.
Here it is--- Any help would be appreciated.
Set Shell = CreateObject("WScript.Shell")
DesktopPath = Shell.SpecialFolders("Desktop")
Set link = Shell.CreateShortcut(DesktopPath & "\test.lnk")
'link.Arguments = "1 2 3"
link.Description = "test shortcut"
link.HotKey = "CTRL+F10"
link.IconLocation = "%SystemRoot%\system32\SHELL32.dll,45" 'This points to
the desired icon
link.TargetPath = "c:\blah\Test Folder"
link.WindowStyle = 3
link.WorkingDirectory = "c:\blah"
link.Save
Thanks,
Doug Sanders