All pastes #493301 Raw Edit

Untitled

public text v1 · immutable
·published 2007-05-17 18:13 UTC
rendered paste body

D:\ResNet Work\WPS>type test.bat
rem /** clear screen **/
cls
@echo off
@echo.


rem /** checks for WPA2 hot fix patch **/
for /F %%a in ('"systeminfo | findstr KB932246"') do set found=0
if exists %found% goto WPA_FOU
goto WPA_INS

:WPA_FOU
echo WPA2 HOTFIX PATCH FOUND
@echo.
goto START

:WPA_INS
echo WPA2 HOTFIX MISSING
echo STARTING INSTALLATION OF WPA2 NOW ....
@echo.
goto END




rem /** Enable Wirelesslan auto-configuration if not enable already **/
:START
sc start dot3svc >NUL

rem /** debug **/
@echo Debug ErrorLevel: %errorlevel%
@echo.

if %errorlevel% == 1062 goto WLAN_OFF
if %errorlevel% == 1056 goto WLAN_ON
if %errorlevel% == 0 goto WLAN_EN

:WLAN_OFF
@echo ###################################################
@echo.
@echo Code: 1062
@echo Wirelesslan auto-configuration has stopped running
@echo.
@echo ###################################################
goto END

:WLAN_ON
@echo ###################################################
@echo.
@echo Code: 1056
@echo Wirelesslan auto-configuration already running
@echo.
@echo ###################################################
goto END

:WLAN_EN
@echo ###################################################
@echo.
@echo Code: 0
@echo Wirelesslan auto-configuration enabled successfully
@echo.
@echo ###################################################






:END
echo.


@echo finished.
pause
D:\ResNet Work\WPS>