Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @echo off
- setlocal
- :: Get Steam install directory from the registry
- for /f "tokens=2,*" %%A in (
- 'reg query "HKCU\Software\Valve\Steam" /v SteamPath 2^>nul ^| find /i "SteamPath"'
- ) do set "STEAMDIR=%%B"
- if not defined STEAMDIR (
- for /f "tokens=2,*" %%A in (
- 'reg query "HKLM\SOFTWARE\WOW6432Node\Valve\Steam" /v InstallPath 2^>nul ^| find /i "InstallPath"'
- ) do set "STEAMDIR=%%B"
- )
- if not defined STEAMDIR (
- echo Could not find Steam installation directory.
- pause
- exit /b 1
- )
- echo Steam directory:
- echo %STEAMDIR%
- echo.
- :: Delete files in the Steam root directory containing "overlay"
- for %%F in ("%STEAMDIR%\*overlay*") do (
- if exist "%%~fF" (
- echo Deleting %%~nxF
- del /f /q "%%~fF"
- )
- )
- echo.
- echo Launching Destiny 2...
- start "" "steam://run/1085660"
- endlocal
Advertisement
Add Comment
Please, Sign In to add comment