Advertisement
Guest User

validate steam games

a guest
Dec 6th, 2012
1,096
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Batch 0.81 KB | None | 0 0
  1. REM http://gaming.stackexchange.com/q/95122/27134
  2. REM ps: this doesn't work as Steam will only validate one game at once, but running steam.exe
  3. REM steam://validate/ exits immediately, passing the command onto the instance of steam that is already
  4. REM running
  5.  
  6. @echo off
  7. SetLocal
  8.  
  9. For /F "tokens=3*" %%A in ('reg query "HKLM\Software\Valve\Steam" /v InstallPath') do set STEAM=%%A
  10.  
  11. If "%STEAM%"=="" For /F "tokens=3*" %%B in ('reg query "HKLM\Software\Wow6432Node\Valve\Steam" /v InstallPath') do Set STEAM=%%B
  12.  
  13. If "%STEAM%"=="" Set /p STEAM="Enter steam location: "
  14.  
  15. For /F "tokens=1" %%C in ('dir /b /a:d %STEAM%\userdata') do Set USERDATA=userdata\%%C
  16.  
  17. echo %STEAM%\%USERDATA%
  18. pause
  19.  
  20. For /F "tokens=1" %%D in ('dir /b /a:d %STEAM%\%USERDATA%') do Call %STEAM%\steam.exe steam://validate/%%D
  21.  
  22. EndLocal
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement