Windows常用批处理命令记录

来源:互联网 发布:学编程要多少钱 编辑:程序博客网 时间:2024/05/20 08:02

系统重启.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 1netsh 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 1netsh interface IP set dns "本地连接" static 192.168.1.2 primary


cmd.bat ==>> 查看IP,并进入命令行模式

ipconfigcmd.exe


 



 

本文博客源地址:http://blog.csdn.net/ypist