在批处理文件中中如何在一个程序结束后运行另外一个程序

我有一个app.exe文件,然后想在这个exe退出后,调用 python test.py这个命令

@echo off
start /WAIT app.exe
start python test.py
上面的代码不管用啊,因为app.exe执行完后会产生一个txt文件给test.py用,
而上面的语句总是一起运行了

第1个回答  2018-06-29
@echo off
start /WAIT app.exe
:begin
ping -n 5 127.1>nul
tasklist |findstr app.exe goto begin
start python test.py

本回答被网友采纳
相似回答