BAT文件启动应用程序

以qq软件为例子

 

@echo off
start /d "D:\Program Files (x86)\Tencent\QQ\Bin\" QQ.exe
exit

 

@echo off
start /d "E:\Program Files (x86)\Tencent\QQ\Bin\" QQ.exe
choice /t 3 /d y /n >nul
start /d "E:\Program Files (x86)\Tencent\WeChat\" WeChat.exe
start /d "E:\Program Files (x86)\Tencent\WeChat\" WeChat.exe
choice /t 3 /d y /n >nul
start /d "E:\Program Files (x86)\Tencent\WXWork\" WXWork.exe
exit
或者是这样

@echo off
choice /t 3 /d y /n >nul
start D:\"Program Files (x86)"\360\360AP\360AP.exe /desktopfree
exit

路径中有空格的文件夹要加上双引号

 

posted @ 2019-09-11 16:56  任督二脉  阅读(7935)  评论(1编辑  收藏  举报