If one .lnk file works for everybody, I guess copying is OK.  You can create
them with .vbs too:

 

------

dim shell, shortcut, shortcutfile, userenv

set shell = WScript.CreateObject("WScript.Shell")

set userenv=shell.Environment("USER")

shortcutfile = shell.specialfolders("desktop") +"\shortcut.lnk"

Set shortcut = shell.CreateShortcut(shortcutfile)

 

shortcut.TargetPath = "C:\Program Files\app\app.exe"

shortcut.WorkingDirectory = "C:\Program Files\app"

 

' other parameters:

' shortcut.Arguments = ""

' shortcut.Description = "Appname"

' shortcut.HotKey = "ALT+CTRL+F"

' shortcut.IconLocation = "C:\Program Files\app\app.exe,2"

' shortcut.WindowStyle = "1"

 

shortcut.Save

------

Carl

 

From: Joe Heaton [mailto:[EMAIL PROTECTED] 
Sent: Friday, August 22, 2008 12:41 PM
To: NT System Admin Issues
Subject: Question for all you gurus

 

I need to replace a shortcut on all my users' desktops.  My thinking is to
include this in the login script.  Is this possible?  Is it a matter of the
following:

 

Del c:\documents and settings\%username%\desktop\shortcut.lnk

Copy \\servername\share\newshortcut.lnk
<file:///\\servername\share\newshortcut.lnk>  c:\documents and
settings\%username%\desktop\shortcut.lnk

 

Is it that simple, or am I truly a noob?

 

Joe Heaton

AISA

Employment Training Panel

1100 J Street, 4th Floor

Sacramento, CA  95814

(916) 327-5276

[EMAIL PROTECTED]

 

 

 

 

~ Finally, powerful endpoint security that ISN'T a resource hog! ~
~ <http://www.sunbeltsoftware.com/Business/VIPRE-Enterprise/>  ~

Reply via email to