Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- :loop
- @echo off
- for /f "tokens=2 delims==" %%a in ('wmic OS Get localdatetime /value') do set "dt=%%a"
- set "YY=%dt:~2,2%" & set "YYYY=%dt:~0,4%" & set "MM=%dt:~4,2%" & set "DD=%dt:~6,2%"
- set "HH=%dt:~8,2%" & set "Min=%dt:~10,2%" & set "Sec=%dt:~12,2%"
- set "filewithtimestamp=C:\%YYYY%-%MM%-%DD% %HH%-%Min%-%Sec% УИК № 347 [cam1].ts"
- streamlink.exe --hls-segment-threads 2 --default-stream best -o "%filewithtimestamp%" --url "http://streamer..."
- goto loop
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement