Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @echo off
- SetLocal EnableExtensions
- echo.
- echo "Script for extraction personal ID from .hta files"
- echo.
- cd /d "%~dp0"
- for /f "delims=" %%a in ('dir /b /s /a-d *.hta') do (
- echo FILE = %%a
- for /f "UseBackQ tokens=1-2 delims=<> " %%b in ("%%~a") do (
- if "%%b"=="pre" (
- echo ID = %%c&echo.
- >>ID.txt echo personal ID: %%c
- )
- )
- )
- echo FINISHED.
- if exist ID.txt start "" ID.txt
- pause
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement