SCRIPT TO COPY A SHORTCUT
hello all i have this script to copy a shortcut to a desktop for some reason this script refuse to work right. that script work on one workstation when i try to push out i am not getting any results
'===========
Set objFSO = CreateObject("Scripting.FileSystemObject")
Set objShell = CreateObject("WScript.Shell")
Set objProcess = objShell.Environment("Process")
strDesktop = objProcess.Item("UserProfile") & "\Desktop\"
boolOverwrite = False
objFSO.CopyFile "\\server\share\shortcut.lnk", strDesktop, boolOverwrite
'==========
Answers (4)
Try running it as online script, and set the logged as option of the script as run As User logged in to console (aka run as the user who's logged into the desktop).
otherwise if you don't have those set it will run as the local system.
Another option would be to set up a file synchronization that unzips a the shortcuts to the all users folder desktop (or in Windows 7 public's desktop)
Comments:
-
how do you set up as file sync - brighstarcuit 12 years ago