Advertisement
Hugo7

Script de nettoyage de logs

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