Wishlist 0 ¥0.00

如何通过批处理启动或关闭程序

如果你需要一次性启动或关闭若干程序,要是一个一个的操作真的会麻烦,所以我们可以编写一个批处理文件以快速的启动或关闭程序

方法/步骤

  1. 新建两个文本文件,分别命名为start_app.bat和kill_app.bat

    start_app.bat是用来启动程序

    kill_app.bat是用来关闭程序

    如何通过批处理启动或关闭程序
    如何通过批处理启动或关闭程序
  2. 用记事本打开start_app.bat

    输入内容:

    cd x64

    start "dummyclient" "dummyclientD.exe"

    也可以

    start “dummyclient” “d:\x64\dummyclientD.exe"

    推荐上一种写法,这样可以保证程序运行时,它的工作目录是程序所在的目录

    如何通过批处理启动或关闭程序
  3. 用记事本打开kill_app.bat

    输入内容

    kill /f /im dummyclientD.exe

    如何通过批处理启动或关闭程序
    END

About Us

Since 1996, our company has been focusing on domain name registration, web hosting, server hosting, website construction, e-commerce and other Internet services, and constantly practicing the concept of "providing enterprise-level solutions and providing personalized service support". As a Dell Authorized Solution Provider, we also provide hardware product solutions associated with the company's services.
 

Contact Us

Address: No. 2, Jingwu Road, Zhengzhou City, Henan Province

Phone: 0086-371-63520088 

QQ:76257322

Website: 800188.com

E-mail: This email address is being protected from spambots. You need JavaScript enabled to view it.