Windows Thread, copying a file at logon in Technical; am trying to copy the login script on to the desktop of some laptops at login (dont ask)
using the ...
18th October 2005, 02:52 PM #1
copying a file at logon
am trying to copy the login script on to the desktop of some laptops at login (dont ask)
using the command
if %computername:~0,3% == LAP xcopy /Y /D \\lsahtc_win2k1\netlogon\ntstaff.bat "c:\documents and settings\%username%\desktop"
if i run the login script in a cmd window after login has occurred it works fine. it doesnt work when the login script runs normally. is this something to do with profiles not being initialised or something? any thoughts on what to do to get it to work
IDG Tech News
18th October 2005, 04:26 PM #2
Re: copying a file at logon
Try putting something like:
at the top of your script while you're testing and see if you get the output you'd expect. It won't fix it, but it's where I'd start.
echo computer name begins with
echo check for batch file
if exist \\lsahtc_win2k1\netlogon\ntstaff.bat echo batch file exists
echo path to desktop is
echo "c:\documents and settings\%username%\desktop"
By strawberry in forum Windows
Last Post: 20th September 2007, 09:23 AM
By enjay in forum Windows Vista
Last Post: 6th September 2007, 02:56 PM
By Kwyjibo in forum Scripts
Last Post: 9th May 2007, 03:30 PM
By mortstar in forum Hardware
Last Post: 1st February 2007, 01:34 PM
By tosca925 in forum Scripts
Last Post: 23rd March 2006, 06:27 AM
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)