I'm assuming I need to change some permissions, but I'm not sure what or
how. I get this error message:

---
Script: \\UNISAT-PDC\NETLOGON\Quicksat.vbs
Line:           9
Char:           1
Error:  Unable to save shortcut "C:\WINNT\Profiles\All
Users\Desktop\Quicksat.lnk
Code:           80004005
Source: WshShortcut.sav
---

I'm trying to run this code:

---
Set WshShell = CreateObject("WScript.Shell")
strDesktopPath = WshShell.SpecialFolders("AllUsersDesktop")

Set objShortcutLnk = WshShell.CreateShortcut(strDesktopPath &
"\Quicksat.lnk")
objShortcutLnk.TargetPath = "C:\Program Files\Quicksat\Quicksat.exe"
objShortcutLnk.Description = "Quicksat"
objShortcutLnk.WorkingDirectory = "C:\Program Files\Quicksat"

objShortcutLnk.Save
---

It worked fine with another shortcut using the same code! Any ideas?

TIA,

~Brad


http://www.sunbelt-software.com/ntsysadmin_list_charter.htm

Reply via email to