Skip to content

Instantly share code, notes, and snippets.

@FATESAIKOU
Created February 19, 2026 16:12
Show Gist options
  • Select an option

  • Save FATESAIKOU/d607aaa2f980bb27c9414f45ac7eafb7 to your computer and use it in GitHub Desktop.

Select an option

Save FATESAIKOU/d607aaa2f980bb27c9414f45ac7eafb7 to your computer and use it in GitHub Desktop.
StartOBS & Zoom
@echo off
setlocal EnableExtensions
set "LIMIT=2026/02/22 08:57:00"
@REM set "LIMIT=2026/02/20 01:08:00"
call :wait_until "%LIMIT%"
echo [%date% %time%] starting OBS recording...
cd /d "C:\Program Files\obs-studio\bin\64bit"
start "" "obs64.exe" --startrecording
timeout 20
echo [%date% %time%] joining Zoom...
start "" "C:\Users\username\AppData\Roaming\Zoom\bin\Zoom.exe" --url="zoommtg://zoom.us/join?action=join&confno=ZOOMID&pwd=ZOOMPWD"
exit /b 0
:wait_until
setlocal
set "TARGET=%~1"
echo [%date% %time%] waiting until %TARGET% ...
powershell -NoProfile -ExecutionPolicy Bypass -Command ^
"$t=[datetime]::ParseExact('%TARGET%','yyyy/MM/dd HH:mm:ss',$null); " ^
"$d=($t-(Get-Date)).TotalSeconds; " ^
"if($d -gt 0){Start-Sleep -Seconds ([math]::Ceiling($d))}"
endlocal & exit /b 0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment