Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @echo off
- cls
- setlocal enabledelayedexpansion
- for /f "tokens=2* usebackq" %%A in (`REG QUERY "HKEY_LOCAL_MACHINE\SOFTWARE\pfendt" /v myvar^|find "myvar"`) do set RESULT=%%B
- echo this is what i found !RESULT!
- endlocal
- pause
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement