manager_shop.bat 567 B

1234567891011121314151617181920212223
  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%
  16. exit 0