@echo off
start ButtonFix.exe
cd "D:\KASE-EO\FruitMachine\LED\LEDBlinky"
start AttractActivate.exe
cd "D:\FME FX3\JoyToKey\bin"
start JoyToKey.exe"
cd "D:\FME FX3"
start/wait FruitMachineEmulation.exe
Taskkill / f /im "ButtonFix.exe"
Taskkill / f /im "AttractActivate.exe"
exit
我创建了上述文件,因此关闭后FruitMachineEmulation.exe
它将被 Taskkill ButtonFix.exe
,attactacviate.exe
但它不起作用,有人能知道为什么吗,非常感谢 rob(我还在这里学习,所以请帮忙)
答案1
请尝试:
Taskkill /f /im "ButtonFix.exe"
Taskkill /f /im "AttractActivate.exe"
答案2
因为 / 和 f 之间有一个空格
Taskkill / f /im "ButtonFix.exe"
Taskkill / f /im "AttractActivate.exe"
他们应该是:
Taskkill /f /im "ButtonFix.exe"
Taskkill /f /im "AttractActivate.exe"