20230429144943.png

if exist E:\gho\123.exe start E:\gho\123.exe

ping 127.0.0.1 -n 10

tasklist|find /i "456.exe" ||start C:\windows\fff.exe

第一行:E:\gho目录 如果存在123.exe,就执行123.exe;如果不存在无法执行,也不会弹出错误窗口。

第二行:延迟10秒运行第三行

第三行:判定系统进程是否存在456.exe,如果不存在,就执行fff.exe;如果存在,就不执行任何操作。