CLS 
@echo off
ECHO.
call  %SystemDrive%\netinst\env_set.bat

ping %P_SERVER%
echo  ================================== >  c:\netinst\install.txt

echo  REGEDIT /S %BAT_PATH%\win2k_autoin1.reg >>  c:\netinst\install.txt
ECHO  REGEDIT /S %BAT_PATH%\win2k_autoin1.reg
REGEDIT /S %BAT_PATH%\win2k_autoin1.reg

echo  Copying gdiplus.dll to C:\WINNT\system32 >>  c:\netinst\install.txt
ECHO Copying gdiplus.dll to C:\WINNT\system32
COPY "%WIN_UPDATE%\win2k\gdiplus.dll"  "C:\WINNT\system32"

echo  Copying reg.exe to C:\WINNT\system32 >>  c:\netinst\install.txt
ECHO Copying reg.exe to C:\WINNT\system32
COPY "%BAT_PATH%\reg.exe"  "C:\WINNT\system32"

echo  Copying shutdown.exe to C:\WINNT\system32 >>  c:\netinst\install.txt
ECHO Copying shutdown.exe to C:\WINNT\system32
COPY "%BAT_PATH%\shutdown.exe"  "C:\WINNT\system32"

::echo  Copying VMware_Tools_ahk.exe to c:\netinst >>  c:\netinst\install.txt
::ECHO Copying VMware_Tools_ahk.exe to c:\netinst
::COPY "%BAT_PATH%\VMware_Tools_ahk.exe"  "c:\netinst"

::echo  Copying VMware_Tools_ahk.ahk to c:\netinst >>  c:\netinst\install.txt
::ECHO Copying VMware_Tools_ahk.ahk to c:\netinst
::COPY "%BAT_PATH%\VMware_Tools_ahk.ahk"  "c:\netinst"

echo  Copying Hardware_Info.vbs to c:\netinst >>  c:\netinst\install.txt
ECHO Copying Hardware_Info.vbs to c:\netinst
COPY "%BAT_PATH%\Hardware_Info.vbs"  "c:\netinst"

echo  Copying batch.reg to c:\netinst >>  c:\netinst\install.txt
ECHO Copying batch.reg to c:\netinst
COPY "%BAT_PATH%\batch.reg"  "c:\netinst"

echo  REGEDIT /S c:\netinst\batch.reg >>  c:\netinst\install.txt
echo  REGEDIT /S c:\netinst\batch.reg
REGEDIT /S c:\netinst\batch.reg


@for /f  "tokens=2,*" %%i in ('reg query "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Nls\Language" /v Default ^| find "Default"') do @set LANG_VER=%%j
echo set "LANG_VER=%LANG_VER%" >>  %SystemDrive%\netinst\env_set.bat

REM Get Computer Manufacturer
::@FOR /F "tokens=2 delims='='" %%A in ('wmic ComputerSystem Get Manufacturer /value') do SET MANU_FACTURERS=%%A

REM Get Computer Model
::@FOR /F "tokens=2 delims='='" %%A in ('wmic ComputerSystem Get Model /value') do SET SYSTEM_MODEL=%%A

::@set  "SYS_MODEL=%MANU_FACTURERS%%SYSTEM_MODEL%"
::@set  "SYS_MODEL=%SYS_MODEL: =%"
call  %SystemDrive%\netinst\Hardware_Info.vbs
call  %SystemDrive%\netinst\env_set.bat

echo  %SYS_MODEL%
::echo set "SYS_MODEL=%SYS_MODEL%" >>  %SystemDrive%\netinst\env_set.bat


::ECHO ping 127.0.0.1 -n 6 > nul  >  c:\netinst\batch.bat
::ECHO ping -n 5 %P_SERVER% >  c:\netinst\batch.bat
ECHO "%BAT_PATH%\win2k.cmd" %1 >>  c:\netinst\batch.bat
echo ECHO "%BAT_PATH%\win2k.cmd" %1 ^>^>  c:\netinst\batch.bat >>  c:\netinst\install.txt

c:\netinst\batch.bat
