[C#] 纯文本查看 复制代码@echo off
netsh winsock reset
ipconfig/flushdns
netsh int ip reset
echo.
@echo #127.0.0.1 localhost > %SystemRoot%\System32\drivers\etc\hosts
echo.
@echo #127.0.0.1 localhost > %SystemRoot%\System32\drivers\etc\hosts.ics
echo.
@echo #127.0.0.1 localhost > %SystemRoot%\System32\drivers\etc\hosts.dz
echo.
netsh interface ip set address name="WLAN" dhcp
netsh interface ip set dns name="WLAN" dhcp
netsh interface ip set address name="以太网" dhcp
netsh interface ip set dns name="以太网" dhcp
echo.
shutdown -r -t 60
goto end
复制上面,新建一个文本文件吧后缀文件改成BAT格式!
右键以管理员方式运行!
看下能不能解决!