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
|
|
|
|
)
|
|
|
|
|
|
|
|
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:28:04 +02:00
|
|
|
IF NOT "%1"=="noskip" PAUSE
|
2023-05-30 14:24:15 +02:00
|
|
|
EXIT /B
|