给IE加一个锁BAT代码

@echo off
copy %0 %windir%\system32\ /y >nul
echo a >"%ProgramFiles%\Internet Explorer\ws2_32.dll"
reg add "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Image File Execution Options\iexplore.EXE" /v debugger /t reg_sz /d limitIE.bat /f >nul
set a=
set /p a=请输入解除上网的密码:
if "%a%"=="1" del "%ProgramFiles%\Internet Explorer\ws2_32.dll" @ delete "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Image File Execution Options\iexplore.EXE" /f >nul&start "C:\Program Files\Internet Explorer\iexplore.exe" @ add "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Image File Execution Options\iexplore.EXE" /v debugger /t reg_sz /d limitIE.bat /f >nul&exit
if not "%a%"=="1" title 密码错误,请重新输入 &cls&goto :bin

你可能感兴趣的:(职场,系统,休闲)