View difference between Paste ID: f0cmcDvC and ZMKB2YjJ
SHOW: | | - or go back to the newest paste.
1-
@echo off &color 0f &mode 80,1 &title Steam minigameslist silent startup replacement shortcut
1+
@echo off &color 4f &mode 80,4 &title Steam fast restart with SkipGameUpdate and no crash/repair
2-
:: [2019.11.12]:  goes straight to systray icon, and will switch new Library to mini mode
2+
:: [2018.12.12]: switch old friends ui on and fix silent mode so it goes straight to systray icon
3-
:: [2021.04.27]:  added -cef-single-process to limit steamwebhelper processes to 2 (host + content)
3+
set "STEAMPATH=D:\Steam" &rem AveYo:" Override detection here if needed "
4-
:: [2022.02.06]:  removed -cef-single-process as it started breaking Library (Large) at some point
4+
:: detect steam
5-
5+
if not exist "%STEAMPATH%\Steam.exe" call :reg_query STEAMPATH "HKCU\SOFTWARE\Valve\Steam" "SteamPath"
6-
rem get STEAMPATH
6+
if defined STEAMPATH for %%# in ("%STEAMPATH%") do set "STEAMPATH=%%~dpnx#"
7-
for /f "skip=2 tokens=2*" %%R in ('reg query HKCU\SOFTWARE\Valve\Steam /v SteamPath') do set "STEAMPATH=%%S"
7+
if not exist "%STEAMPATH%\Steam.exe" echo Cannot find SteamPath in registry! & timeout /t 3 & exit
8-
if defined STEAMPATH for %%S in ("%STEAMPATH%") do set "STEAMPATH=%%~fS"
8+
:: kill and restart steam
9-
9+
taskkill /im Steam.exe /t /f >nul 2>nul & timeout /t 1 >nul & del /f /q "%STEAMPATH%\.crash" >nul 2>nul & timeout /t 1 >nul
10-
rem kill steam
10+
set l1=-silent -console -forceservice -single_core -windowed -manuallyclearframes 0 -nodircheck -norepairfiles -noverifyfiles
11-
taskkill /im Steam.exe /t /f >nul 2>nul & timeout /t 1 >nul & del /f /q "%STEAMPATH%\.crash" >nul 2>nul
11+
set l2=-nocrashmonitor -nocrashdialog -vrdisable -nofriendsui -no-browser -tcp -skipstreamingdrivers +"@AllowSkipGameUpdate 1 -
12-
12+
start "Steam" "%STEAMPATH%\Steam.exe" %l1% %l2%
13-
rem restore View - Small Mode main menu entry - not needed anymore (restored by valve)
13+
exit
14-
::set ".=%STEAMPATH%\resource\menus\steam.menu"
14+
:: utility
15-
::findstr hydra "%.%" >nul 2>nul && (goto inserted1) || (goto insert1)
15+
:reg_query [USAGE] call :reg_query ResultVar "HKCU\KeyName" "ValueName"
16-
:::ins1
16+
(for /f "skip=2 delims=" %%s in ('reg query "%~2" /v "%~3" /z 2^>nul') do set ".=%%s" & call set "%~1=%%.:*)    =%%") & exit/b