Advertisement
Samatter

sse.reg.bat

Nov 23rd, 2021 (edited)
2,095
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. @echo off
  2. setlocal EnableDelayedExpansion
  3. echo [ Steam Path ]
  4. set KeyNameS="HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\Bethesda Softworks\Skyrim Special Edition"
  5. set ValueNameS="Installed Path"
  6. for /f "tokens=3* delims= " %%A in ('reg query !KeyNameS! /v !ValueNameS!') do (
  7.     set ResultTypeS="%%A"
  8.     set ResultDataS="%%B"
  9. )
  10. echo Key   = !KeyNameS!
  11. echo Value = !ValueNameS!
  12. echo Type  = !ResultTypeS!
  13. echo Data  = !ResultDataS!
  14. echo:
  15. echo [ GOG Path ]
  16. set KeyNameG="HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\GOG.com\Games\1711230643"
  17. set ValueNameG="Path"
  18. for /f "tokens=2* delims= " %%A in ('reg query !KeyNameG! /v !ValueNameG!') do (
  19.     set ResultTypeG="%%A"
  20.     set ResultDataG="%%B"
  21. )
  22. echo Key   = !KeyNameG!
  23. echo Value = !ValueNameG!
  24. echo Type  = !ResultTypeG!
  25. echo Data  = !ResultDataG!
  26. echo:
  27. echo For a more advanced solution visit https://github.com/Meridiano/SkyrimSE-Reg
  28. echo:
  29. pause
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement