On 22 Aug 2008 at 9:40, Joe Heaton wrote:
>
> 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 c:\documents and
> settings\%username%\desktop\shortcut.lnk
>
> Is it that simple, or am I truly a noob?
Should do it, don't forget the "quotes" around "c:\documents and
settings\%username%\desktop\shortcut.lnk" in your batch file ... you might put
in an attribute-change line just in case the (l)user has protected the shortcut
for some strange reason:
attrib -r "
c:\documents and settings\%username%\desktop\shortcut.lnk"
The only problem might be if this is an "All Users" shortcut, in which case you
would need admin rights to delete the old one.
--
Angus Scott-Fleming
GeoApps, Tucson, Arizona
1-520-290-5038
~!
