To: Kent
rem ::SETLOCAL VER | find "NT" > nul IF not errorlevel 1 GOTO Win_NT
VER | find "2000" > nul IF not errorlevel 1 GOTO Win_NT
VER | find "XP" > nul IF not errorlevel 1 GOTO Win_NT
VER | find "98" > nul IF not errorlevel 1 GOTO Win_9X
VER | find "95" > nul IF not errorlevel 1 GOTO Win_9X
GOTO unknown_os
:win_NT @TITLE Company A / Company B NT Logon Script ECHO HELLO %USERNAME%! Echo Welcome to %USERDOMAIN%, Inc. NT Domain Environment
%LOGONSERVER%\NETLOGON\kix32.exe %LOGONSERVER%\NETLOGON\PLogonNT.kix
goto end
:win_9X
%WINDIR%\PUTINENV.EXE L %WINDIR%\winset computername=%COMPUTERNAME% %WINDIR%\winset username=%USERNAME% %WINDIR%\winset LANGROUP=%LANGROUP% %WINDIR%\winset LOGONSERVER=%LOGONSERVER%
:: --- DISPLAY THE USER NAME/DOMAIN ECHO HELLO %USERNAME%! ECHO Welcome to %LANGROUP%, Inc. Windows 9x Domain Environment
%LOGONSERVER%\NETLOGON\kix32.exe %LOGONSERVER%\NETLOGON\PLogon9X.kix <<<<<< Cannot run >>>>>>
goto end
:unknown_os :end exit
-------------------- Now I found and fixed the problem with W32Time but I have some question about those command line ...
Why That command cannot run.. %LogonServer% cannot find? What happen on Window9X parameter.
But In Windows2000 no error.
Thanks Pech
|