Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- REM http://gaming.stackexchange.com/q/95122/27134
- REM ps: this doesn't work as Steam will only validate one game at once, but running steam.exe
- REM steam://validate/ exits immediately, passing the command onto the instance of steam that is already
- REM running
- @echo off
- SetLocal
- For /F "tokens=3*" %%A in ('reg query "HKLM\Software\Valve\Steam" /v InstallPath') do set STEAM=%%A
- If "%STEAM%"=="" For /F "tokens=3*" %%B in ('reg query "HKLM\Software\Wow6432Node\Valve\Steam" /v InstallPath') do Set STEAM=%%B
- If "%STEAM%"=="" Set /p STEAM="Enter steam location: "
- For /F "tokens=1" %%C in ('dir /b /a:d %STEAM%\userdata') do Set USERDATA=userdata\%%C
- echo %STEAM%\%USERDATA%
- pause
- For /F "tokens=1" %%D in ('dir /b /a:d %STEAM%\%USERDATA%') do Call %STEAM%\steam.exe steam://validate/%%D
- EndLocal
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement