Opening/Closing application via .bat file [Windows]

前端 未结 2 1044
慢半拍i
慢半拍i 2021-02-08 06:00

Good Day, I have a .bat file that run a specific application then after 5 seconds it will close/kill it.

I having right now due to it successfully open the application t

2条回答
  •  心在旅途
    2021-02-08 06:17

    You can use Start /b command.

    @echo off
    cd "C:\Program Files (x86)\Aspera\Point-to-Point\bin\"
    Start "" /b asperascp.exe 
    timeout /T 5 /nobreak >nul
    taskkill /IM asperascp.exe /F
    

提交回复
热议问题