.bat 打开程序

为什么要用.bat打开程序。

因为一个一个难得点

怎么做

百度的,start 程序路径\程序

改进

  • 点击bat,不显示dos窗口。
    新建.vbs文件
    Set shell = Wscript.createobject("wscript.shell")
    a = shell.run (".bat路径\.bat",0)

  • 先判断相应的进程,是否存在,不存在在打开(2016年7月16日)
    ::打开Firefox;
    tasklist | find /i "firefox.exe"s
    if %ERRORLEVEL% EQU 1 start 程序路径\程序

posted @ 2016-07-15 23:46  你要坚定  阅读(436)  评论(0编辑  收藏  举报