Yes!! Thank you Steve, you win the cookie :) Joe Heaton
-----Original Message----- From: Nelligan, Steve M (Facilities & Services) [mailto:[EMAIL PROTECTED] Sent: Friday, August 22, 2008 1:34 PM To: NT System Admin Issues Subject: RE: Question for all you gurus Is there a space in the UNC string? ...\sub folder\... If there is, enclose the file in quotes. -Steve Nelligan -----Original Message----- From: Joe Heaton [mailto:[EMAIL PROTECTED] Sent: Friday, August 22, 2008 3:30 PM To: NT System Admin Issues Subject: RE: Question for all you gurus Here's what I have in the batch file: Copy \\servername\share\sub folder\testing.txt "%userprofile\desktop" The UNC path is correct, and if I go to Run and type it in, the text file opens. But I'm getting the following error: The system cannot find the file specified. Any ideas where to look now? Joe Heaton -----Original Message----- From: Angus Scott-Fleming [mailto:[EMAIL PROTECTED] Sent: Friday, August 22, 2008 11:43 AM To: NT System Admin Issues Subject: Re: Question for all you gurus 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 ~! No virus found in this incoming message. Checked by AVG - http://www.avg.com Version: 8.0.138 / Virus Database: 270.6.6/1627 - Release Date: 8/22/2008 6:48 AM ~ Finally, powerful endpoint security that ISN'T a resource hog! ~ ~ <http://www.sunbeltsoftware.com/Business/VIPRE-Enterprise/> ~ ~ Finally, powerful endpoint security that ISN'T a resource hog! ~ ~ <http://www.sunbeltsoftware.com/Business/VIPRE-Enterprise/> ~ No virus found in this incoming message. Checked by AVG - http://www.avg.com Version: 8.0.138 / Virus Database: 270.6.6/1627 - Release Date: 8/22/2008 6:48 AM ~ Finally, powerful endpoint security that ISN'T a resource hog! ~ ~ <http://www.sunbeltsoftware.com/Business/VIPRE-Enterprise/> ~
