here is my logon.bat

You should be able to figure out the functionality of it.

code:
 
@ECHO OFF
cls
set areaserver=server1

VER | find "XP" > nul
IF not errorlevel 1 GOTO WinXP
VER | find "2000" > nul
IF not errorlevel 1 GOTO Win2K
VER | find "NT" > nul
IF not errorlevel 1 GOTO WinNT
GOTO END

:WinXP
xcopy \\%areaserver%\logon\kix32.exe %windir% /d /y /v >nul
%windir%\kix32.exe \\%areaserver%\logon\kixtart.kix
GOTO END
:Win2K
xcopy \\%areaserver%\logon\kix32.exe %windir% /d /y /v >nul
%windir%\kix32.exe \\%areaserver%\logon\kixtart.kix
GOTO END
:WinNT
xcopy \\%areaserver%\logon\kix32.exe %windir% /d /v >nul
%windir%\kix32.exe \\%areaserver%\logon\logon.kix
GOTO END
:WIN9X
GOTO END

:END

_________________________
How to ask questions the smart way <-----------> Before you ask