stop.bat 231 B

1234567891011
  1. @echo off
  2. setlocal enabledelayedexpansion
  3. for /f "tokens=1-5" %%a in ('netstat -ano ^| find "9191"') do (
  4. if "%%e%" == "" (
  5. set pid=%%d
  6. ) else (
  7. set pid=%%e
  8. )
  9. echo !pid!
  10. taskkill /f /pid !pid!
  11. )