Advertisement
Diskretor

Untitled

May 30th, 2018
147
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.51 KB | None | 0 0
  1. @echo off
  2. SetLocal EnableExtensions
  3.  
  4. echo.
  5. echo "Script for extraction personal ID from .hta files"
  6. echo.
  7.  
  8. cd /d "%~dp0"
  9.  
  10. for /f "delims=" %%a in ('dir /b /s /a-d *.hta') do (
  11. echo FILE = %%a
  12. for /f "UseBackQ tokens=1-2 delims=<> " %%b in ("%%~a") do (
  13. if "%%b"=="pre" (
  14. echo ID = %%c&echo.
  15. if not defined ID.%%c (
  16. set ID.%%c=true
  17. >>ID.txt echo personal ID: %%c
  18. )
  19. )
  20. )
  21. )
  22.  
  23. echo FINISHED.
  24.  
  25. if exist ID.txt start "" ID.txt
  26.  
  27. pause
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement