Advertisement
Hugo7

Script de recherche dans les logs

Jul 16th, 2020
1,239
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Batch 0.24 KB | None | 0 0
  1. @echo off
  2. set d=%~dp0
  3. cd /d %d%
  4.  
  5. :loop
  6. cls
  7. del __log.log
  8. set/p r=^>
  9.  
  10. for /f "tokens=*" %%A in ('dir /b out') do (
  11. title %%A
  12. >>__log.log echo ^> %%A
  13. type "out\%%A"|>>__log.log find /i "%r%"
  14. )
  15. notepad __log.log
  16. pause
  17. goto :loop
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement