Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

40 lines
542 B

  1. @echo off
  2. REM selthrd logfile threadid_1 threadid_2 ...
  3. set LOGFILE=%1
  4. set CLEAN=NO
  5. set severity=
  6. set LIST=
  7. shift
  8. :GETPAR
  9. if /I "%1"=="clean" set CLEAN=YES
  10. if /I "%1"=="sev" (
  11. set severity=-severity=%2
  12. shift
  13. )
  14. set ofile=Th%1.tmp
  15. qgrep -n -e " %1: " %LOGFILE% > %ofile%
  16. set LIST=!LIST! %ofile%
  17. echo "!LIST!"
  18. shift
  19. if NOT "%1"=="" goto GETPAR
  20. REM if "%CLEAN%" NEQ "YES" goto RUNIT
  21. REM Clean code here.
  22. :RUNIT
  23. echo start list %LOGFILE% !LIST!
  24. start list %LOGFILE% !LIST!
  25. :QUIT