编写windows7 bat运行脚本

每天上班,打开电脑后,我总是会固定的打开几个软件。这是重复的工作,我要写脚本startup.bat,直接点击它,就可以启动这些软件了。

本文主要参考这里,只用到了start 和 @Rem 两个命令语句。

这是每天要打开软件的顺序——

1. 登录QQ
2. 打开Notepad++
3. 打开IIS
4. 打开google chrome浏览器

最终的startup.bat脚本是这样的——

@Rem 1. 登录QQ
start "" "C:Program Files (x86)TencentQQBinQQScLauncher.exe"     
@Rem 2. 打开Notepad++   
start "" "C:Program Files (x86)Notepad++
otepad++.exe"  
@Rem 3. 打开IIS                   
start "" "%windir%system32inetsrvInetMgr.exe"      
@Rem 4. 打开google chrome浏览器                     
start "" "C:UserszhangbAppDataLocalGoogleChromeApplicationchrome.exe" 

@Rem 用来注释,start "" 用来执行后面地址的.exe文件.

其它更多相关知识可以参考这里这里

(完)

原文地址:https://www.cnblogs.com/zhangbao/p/5805457.html