browolf Posted October 18, 2005 Posted October 18, 2005 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 thx
sahmeepee Posted October 18, 2005 Posted October 18, 2005 Try putting something like: echo computer name begins with echo %computername:~0,3% 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" pause 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.
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now