I made batch code to work as a master run file for the code the javascript generates:
Code:
@echo OFF
for /f "tokens=2-4 delims=/ " %%a in ('date /t') do (set mydate=%%c-%%a-%%b)
for /f "tokens=1-2 delims=/:" %%a in ('time /t') do (set mytime=%%a%%b)
echo %mydate%_%mytime%
for /f "tokens=* delims=." %%a in ('dir /b /od') do (
set newest=%%a
)
call "%newest%"
for /f "tokens=2-4 delims=/ " %%a in ('date /t') do (set mydate=%%c-%%a-%%b)
for /f "tokens=1-2 delims=/:" %%a in ('time /t') do (set mytime=%%a%%b)
echo %mydate%_%mytime%
pause
Make sure the .bat you make for rtmpdump is the most recently edited - this runs the most recent bat file. It displays the time it started, runs that bat file, then displays the time it stopped and awaits for you to look. You could probably improve on this code - I think there is a beep function somewhere which might work, even... - but this is what I'll be using so I don't have to amend pauses and such to each file. All i do is make a new file with the code and run this master code.