
批處理開啟和結束進程(已解決)最后由 wushui 于 -11-25 11:14打開一個程序例如 1.exe兩種方式為 1.exe帶參數 1.exe -aaa打開后有兩個進程都叫1.exe 我怎么寫兩個批處理,分別關閉這兩個(進程名相同)?打開的兩個命令:start 1.exestart 1.exe -aaa關閉帶參數的: wmic process where commandline=1.exe -aaa call terminate關閉不帶參數的:wmic process where CommandLine<>'1.exe -aaa' and name='1.exe' call terminate

