windows下自己常用的几个bat
1.samba映射盘符和解除
net use Z: "\\sambaserver ip\dir" "password" /user:"username" /persistent:no
2.解除映射
net use * /delete
3.设置自动获取IP
netsh interface ip set address name = "本地连接" source = dhcp netsh interface ip set dns name = "本地连接" source = dhcp
4.手动设置IP
Netsh interface IP Set Addr "本地连接" Static 10.10.10.3 255.0.0.0 10.10.10.1 1