manager.bat 465 B

12345678910111213141516171819202122
  1. @echo off & setlocal enabledelayedexpansion
  2. ::ipconfig>ip.txt
  3. netstat -aon |findstr :8500>pid.txt
  4. for /f "delims=" %%a in (pid.txt) do (
  5. for /f "tokens=1* delims=:" %%i in ('call echo %%a^|find /i "TCP"') do (
  6. echo %%a
  7. ::?????????????,§Õ??????????¡À???
  8. rem Echo %%a>>"text.txt"
  9. )
  10. )
  11. rem ????????????
  12. set /P OEM=<pid.txt
  13. rem ???????§Ö??????
  14. echo %OEM:~71,76%
  15. taskkill /f /pid %OEM:~71,76%