windows系统bat批处理 开机一键多个程序
程序员文章站
2022-07-15 15:40:01
...
使用环境:解决开机缓慢,手动打开场景所需软件
新建记事本 改后缀 *.bat
复制下内容
@echo off
if "%1"=="h" goto begin
start mshta vbscript:createobject("wscript.shell").run("""%~nx0"" h",0)(window.close)&&exit
:begin
start/d "C:\Program Files (x86)\software\WeChat" WeChat.exe
start/d "C:\Program Files (x86)\software\WXWork" WXWork.exe
start/d "C:\Program Files (x86)\software\DingDing" DingtalkLauncher.exe
start/d "C:\Program Files (x86)\software\Dict" YoudaoDict.exe
start/d "C:\Program Files (x86)\software\Netease\MailMaster" Application\mailmaster.exe
start/d "C:\Program Files (x86)\software\TIM\Bin" QQScLauncher.exe
start/d "C:\Program Files (x86)\software\Everything" Everything.exe
exit
解释下上图代码,前几行是提权,后面是写文件存放路径和要打开的exe
下一篇: Hash算法