Pastebin launched a little side project called VERYVIRAL.com, check it out ;-) Want more features on Pastebin? Sign Up, it's FREE!
Guest

validate steam games

By: a guest on Dec 6th, 2012  |  syntax: DOS  |  size: 0.81 KB  |  views: 399  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  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