Windows 常用的bat脚本

2021-12-09  本文已影响0人  Digonal

以管理员方式启动:

%1 mshta vbscript:CreateObject("Shell.Application").ShellExecute("cmd.exe","/c %~s0 ::","","runas",1)(window.close)&&exit

设定IP

set /p ip=输入IP地址最后一位:

netsh interface ip set address "本地连接" static 192.168.5.%ip% 255.255.255.0 192.168.5.254

netsh interface ip set dns "本地连接" static 192.168.11.243 primary

开启管理员账号并设置密码

net user administrator /active:yes
net user administrator Database

重启软件,如迅雷

taskkill /f /im Thunder.exe
delay 5000
start "" "C:\Program Files (x86)\Thunder Network\Thunder\Program\Thunder.exe"
上一篇 下一篇

猜你喜欢

热点阅读