confOS/windows/fix_obs_shortcut.bat

21 lines
622 B
Batchfile
Raw Normal View History

2023-05-30 14:24:15 +02:00
@ECHO OFF
:: Start as administrator
fltmc >NUL 2>&1 || (
PowerShell Start -Verb RunAs '%0' 2>NUL || (
EXIT 1
)
EXIT 0
2023-05-30 14:24:15 +02:00
)
PowerShell -Command "" ^
"$WshShell = New-Object -COM WScript.Shell;" ^
"$Shortcut = $WshShell.CreateShortcut('%ProgramData%\Microsoft\Windows\Start Menu\Programs\OBS Studio\OBS Studio (64bit).lnk');" ^
"$Shortcut.TargetPath = '%ProgramFiles%\obs-studio\bin\64bit\obs64.exe';" ^
"$Shortcut.WorkingDirectory = '%ProgramFiles%\obs-studio\bin\64bit';" ^
"$Shortcut.Arguments = '--profile ""ANRI GAMING (PROFIL)"""" --multi';" ^
"$Shortcut.Save()"
2023-05-30 14:24:15 +02:00
2023-08-11 14:28:22 +02:00
IF NOT "%1"=="yes" PAUSE
2023-05-30 14:24:15 +02:00
EXIT /B