terminate.bat 510 B

123456789101112131415161718
  1. @echo off
  2. REM Kill all node.exe processes except for the one associated with your build script
  3. for /f "tokens=2" %%a in ('tasklist ^| findstr /i /c:"node.exe" /c:"BUILD_PROCESS=yes"') do (
  4. taskkill /F /PID %%a
  5. )
  6. REM Kill all java.exe processes except for the one associated with your build script
  7. for /f "tokens=2" %%a in ('tasklist ^| findstr /i /c:"java.exe" /c:"BUILD_PROCESS=yes"') do (
  8. taskkill /F /PID %%a
  9. )
  10. REM Close the terminal window (Windows Terminal)
  11. taskkill /F /IM WindowsTerminal.exe