创建网络磁盘: net use R: \\ServerCenter\Resumes "yourpassword" /user:"username"
启动/停止服务:net start mysql / net stop mysql
netsh实现禁用启用网卡
:loop
@echo 开始禁用网卡...
netsh interface set interface "本地连接 2" enabled
netsh interface ip set dns "本地连接" static 192.168.0.2 primary
netsh interface set interface "本地连接 2" disabled
netsh interface set interface "本地连接 2" enabled
@echo @echo 启用网卡完毕!
ping 192.168.0.2 /n 3
@echo @echo 启用网卡完毕...
netsh interface ip set dns "本地连接" static 0.0.0.0 primary
ping 192.168.0.2 /n 60
cls
goto loop
pause
百度百科参考说明: