bat启动和关闭exe

SET path=D:\DotNetWork\20180823_Server\       //申明变量
SET time=2000

start %path%13.DAL\HostServer_DAL.exe    //启动
start /min /w mshta vbscript:setTimeout("window.close()",%time%)   //休眠





C:\Windows\system32\taskkill.exe /f /im HostServer_DAL.exe     //杀死一个叫HostServer_DAL.exe 的exe
 

你可能感兴趣的:(bat启动和关闭exe)