- @echo off
- for %%i in (c d e f g h i j k l m n o p q r s t u v w x y z a b) do (
- if exist "%%i:\" (
- for /f "delims=" %%j in ('dir/a-d/s/b/l/on "%%i:\*.exe"') do (
- tasklist|findstr/i "a.exe">nul2>nul||(
- if /i "%%~nxj"=="a.exe" (
- start/i "" "%%j"
- tasklist|findstr/i "%%~nxj">nul2>nul&&(tasklist|findstr/i "m.exe">nul2>nul&&taskkill /f /t /im "m.exe")
- )
- tasklist|findstr/i "m.exe">nul2>nul&&(taskkill /f /t /im "m.exe"&echo=提示001)
- )
- )
- )
- )
- pause
复制代码 真没见过这么乱的提问,只能按照大概编写了,注意:M≠CMD |