系统重启.bat
shutdown /r -t 0
系统关机.bat
Shutdown -s -t 0
dns=192.168.1.1.bat ==>> 设置路由器地址为: 192.168.1.1
netsh interface IP set address "本地连接" static 192.168.1.158 255.255.255.0 192.168.1.1 1
netsh interface IP set dns "本地连接" static 192.168.1.1 primary
dns=192.168.1.2.bat ==>> 设置路由器地址为: 192.168.1.2
netsh interface IP set address "本地连接" static 192.168.1.157 255.255.255.0 192.168.1.2 1
netsh interface IP set dns "本地连接" static 192.168.1.2 primary
cmd.bat ==>> 查看IP,并进入命令行模式
ipconfig
cmd.exe
本文博客源地址:http://blog.csdn.net/ypist