Question / Help obs64 batch config

wingbat

New Member
Hi Guys
i am trying to configure obs64 to run from a batch file and start streaming automatically, the script i am trying to use in my bat file is

start /d "C:\Program Files\obs-studio\bin\64bit\obs64.exe" obs64.exe --startstreaming


error

windows cannot find 'obs64.exe'

any help would be greatly appreciated
 

R1CH

Forum Admin
Developer
/D expects a path, not a filename. You should use something like

start /d "C:\Program Files\obs-studio\bin\64bit" "C:\Program Files\obs-studio\bin\64bit\obs64.exe" --startstreaming
 

Tarumes

Member
https://obsproject.com/wiki/Launch-Parameters

i did something similar a while ago with AutoIt

Code:
Local $portable_mode = FileExists(@ScriptDir & '\portable_mode.txt')
ConsoleWrite('portable_mode.txt ' & $portable_mode & @CRLF)
If $portable_mode = 0 Then
 FileWrite(@ScriptDir & '\portable_mode.txt', '')
EndIf
If ProcessExists('obs32.exe') Or ProcessExists('obs64.exe') Then
 ConsoleWrite('OBS-Studio can´t start because it is already running' & @CRLF)
 MsgBox(64, 'OBS-Studio', 'OBS-Studio can´t start because it is already running', 0)
 Exit
ElseIf @OSArch = 'X86' Then
 ConsoleWrite('OSArch = X86 start from ' & @ScriptDir & '\bin\32bit' & @CRLF)
 $iPID = Run('bin\32bit\obs32.exe --startrecording', @ScriptDir & '\bin\32bit')
ElseIf @OSArch = "X64" Then
 ConsoleWrite('OSArch = X64 start from ' & @ScriptDir & '\bin\64bit' & @CRLF)
 $iPID = Run('bin\64bit\obs64.exe --startrecording', @ScriptDir & '\bin\64bit')
Else
EndIf
ConsoleWrite('PID = ' & $iPID & @CRLF)
 
Last edited:
Top