Guest User

Save contents as launch.bat

a guest
Jul 30th, 2026
564
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.84 KB | None | 0 0
  1. @echo off
  2. setlocal
  3.  
  4. :: Get Steam install directory from the registry
  5. for /f "tokens=2,*" %%A in (
  6. 'reg query "HKCU\Software\Valve\Steam" /v SteamPath 2^>nul ^| find /i "SteamPath"'
  7. ) do set "STEAMDIR=%%B"
  8.  
  9. if not defined STEAMDIR (
  10. for /f "tokens=2,*" %%A in (
  11. 'reg query "HKLM\SOFTWARE\WOW6432Node\Valve\Steam" /v InstallPath 2^>nul ^| find /i "InstallPath"'
  12. ) do set "STEAMDIR=%%B"
  13. )
  14.  
  15. if not defined STEAMDIR (
  16. echo Could not find Steam installation directory.
  17. pause
  18. exit /b 1
  19. )
  20.  
  21. echo Steam directory:
  22. echo %STEAMDIR%
  23. echo.
  24.  
  25. :: Delete files in the Steam root directory containing "overlay"
  26. for %%F in ("%STEAMDIR%\*overlay*") do (
  27. if exist "%%~fF" (
  28. echo Deleting %%~nxF
  29. del /f /q "%%~fF"
  30. )
  31. )
  32.  
  33. echo.
  34. echo Launching Destiny 2...
  35. start "" "steam://run/1085660"
  36.  
  37. endlocal
Advertisement
Add Comment
Please, Sign In to add comment