Cmd star exe, exe application name include space

来源:互联网 发布:淘宝开店 如何面试店铺 编辑:程序博客网 时间:2024/06/06 10:41

as example want to kill and start " SerialPort Terminal.exe"


@echo 

::start "" "f:\a b\1 2.exe" 参数1 参数2 参数3


taskkill /FI "IMAGENAME eq SerialPort*"
pause




start "" "path\SerialPort Terminal.exe" 
pause

exit


comment: taskkill 还没有找到更好的办法

0 0
原创粉丝点击