Created
May 12, 2013 14:30
-
-
Save allex/5563765 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@echo off | |
title 快速配置IE代理 | |
:start | |
cls | |
echo. | |
echo 请选择需要进行的设置(使用报关行版请选择2): | |
echo. | |
echo 1) 使用代理 2) 停用代理 3) 删除IE临时文件 Q) 退出 | |
echo. | |
set /p choice= 请作出选择: | |
if /i "%choice%"=="1" goto start1 | |
if /i "%choice%"=="2" goto enbal | |
if /i "%choice%"=="3" goto deltemp | |
if /i "%choice%"=="Q" goto end | |
goto start | |
:start1 | |
reg add "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet Settings" /v ProxyServer /d "proxy:8581" /f | |
reg add "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet Settings" /v ProxyEnable /t REG_DWORD /d 1 /f | |
ipconfig /flushdns | |
echo. | |
echo 目前设置为使用代理,任意键返回. | |
pause>nul | |
goto start | |
:deltemp | |
@ECHO OFF | |
echo 正在清除临时文件,请稍等...... | |
del /f /s /q %systemdrive%\*.tmp | |
del /f /s /q %systemdrive%\*._mp | |
del /f /s /q %systemdrive%\*.log | |
del /f /s /q %systemdrive%\*.gid | |
del /f /s /q %systemdrive%\*.chk | |
del /f /s /q %systemdrive%\*.old | |
del /f /s /q %systemdrive%\recycled\*.* | |
del /f /s /q %windir%\*.bak | |
del /f /s /q %windir%\prefetch\*.* | |
rd /s /q %windir%\temp & md %windir%\temp | |
del /f /q %userprofile%\cookies\*.* | |
del /f /q %userprofile%\recent\*.* | |
del /f /s /q "%userprofile%\Local Settings\Temporary Internet Files\*.*" | |
del /f /s /q "%userprofile%\Local Settings\Temp\*.*" | |
del /f /s /q "%userprofile%\recent\*.*" | |
pause | |
exit | |
:enbal | |
reg add "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet Settings" /v ProxyEnable /t REG_DWORD /d 0 /f | |
echo. | |
echo 目前设置为停用代理,任意键返回. | |
ipconfig /flushdns | |
pause>nul | |
goto start | |
:end | |
exit |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment