Advertisement
Diskretor

Untitled

May 30th, 2018
123
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.44 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. >>ID.txt echo personal ID: %%c
  16. )
  17. )
  18. )
  19.  
  20. echo FINISHED.
  21.  
  22. if exist ID.txt start "" ID.txt
  23.  
  24. pause
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement