|
Hello,
I'm having a hard time makking all of my WINXP computer to work with my script. My win98 and win2k work great but not winxp, Please help...
@echo off rem ************************************************************************ rem ** Logon batch file for RSI - located in netlogon share ** rem ** Homer 8/14/02 v1.0 ** rem ************************************************************************
rem ** Changes rem RC1.01 none rem RC1.02 Mapped win9x client home drive to m: rem RC1.3 Added drive mappings for workgroup support rem RC1.4 Added common drive mappings rem v1.0 Changed JDE drive mapping to J: for all JDE Users
echo RSI Logon Script - v1.0
rem ** create logon script dir on client PC ** if not exist %windir%\_logon md %windir%\_logon >nul
echo Verifying Logon Script xcopy /? > %windir%\_logon\_xcopy.txt find /i "/Y" %windir%\_logon\_xcopy.txt > nul if not errorlevel 1 goto xcopyy xcopy %0\..\logon.flg %windir%\_logon /d > %windir%\_logon\_copytest.txt if errorlevel 1 goto copyfail goto filescopied :xcopyy xcopy %0\..\logon.flg %windir%\_logon /d /y > %windir%\_logon\_copytest.txt if errorlevel 1 goto copyfail :filescopied find /i "0 file(s) copied" %windir%\_logon\_copytest.txt > nul if not errorlevel 1 goto Local
rem ** copy self extracting zip file to local PC and extract local logon scripts ** echo Updating Logon Script echo (may take a few minutes if connected via modem) copy %0\..\_local.exe %windir%\_logon\_local.exe if not exist %windir%\_logon\_local.exe goto copyfail %windir%\_logon\_local.exe /auto %windir%\_logon :delfile del %windir%\_logon\_local.exe if exist %windir%\_logon\_local.exe goto delfile goto local
:copyfail echo Logon Script Copy Failed goto end
rem ** run local logon script located on client PC ** :Local echo Processing Logon Script call %windir%\_logon\local.bat
:end echo Logon Script Finished cd %windir% echo.> %windir%\lmscript.$$$
|