-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstart-streams.ps1
More file actions
26 lines (20 loc) · 1.34 KB
/
start-streams.ps1
File metadata and controls
26 lines (20 loc) · 1.34 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
while (-not (Test-Connection -ComputerName youtube.com -Count 1)) {
Write-Host "Network disconnected. Waiting..."
Start-Sleep -Seconds 5 # Wait for 5 seconds before checking again
}
# put a 30 second delay at boot to make sure everything has started up
Start-Sleep -Seconds 30
Set-Location "C:\GCC-Streaming\obs-studio-sheet-1\bin\64bit\"
Start-Process -FilePath "C:\GCC-Streaming\obs-studio-sheet-1\bin\64bit\obs64.exe" -ArgumentList "-m --startstreaming"
Start-Sleep -Seconds 5
Set-Location "C:\GCC-Streaming\obs-studio-sheet-2\bin\64bit\"
Start-Process -FilePath "C:\GCC-Streaming\obs-studio-sheet-2\bin\64bit\obs64.exe" -ArgumentList "-m --startstreaming"
Start-Sleep -Seconds 5
Set-Location "C:\GCC-Streaming\obs-studio-sheet-3\bin\64bit\"
Start-Process -FilePath "C:\GCC-Streaming\obs-studio-sheet-3\bin\64bit\obs64.exe" -ArgumentList "-m --startstreaming"
Start-Sleep -Seconds 5
#Set-Location "C:\GCC-Streaming\obs-studio-sheet-4\bin\64bit\"
#Start-Process -FilePath "C:\GCC-Streaming\obs-studio-sheet-4\bin\64bit\obs64.exe" -ArgumentList "-m --startstreaming"
#Start-Sleep -Seconds 5
#Set-Location "C:\GCC-Streaming\obs-studio-sheet-5\bin\64bit\"
#Start-Process -FilePath "C:\GCC-Streaming\obs-studio-sheet-5\bin\64bit\obs64.exe" -ArgumentList "-m --startstreaming"