The Mudcat Café TM
Thread #164583 Message #3995312
Posted By: Bonzo3legs
05-Jun-19 - 07:23 AM
Thread Name: Tech: Windows 10 upgrade is still free!
Subject: RE: Tech: Windows 10 upgrade is still free!
One problem I did have with Windows 10 which took a while to solve concerned Task Scheduler. In Windows 7 I had a tasks scheduled to run batch files for recording a number of BBC Radio programmes from the webstream, to start 1 minute early and finish 5 minutes after the end of the program. But both batch file and Task Scheduler settings had to be rehashed to work in Windows 10.
The new batch files follow this pattern:
@echo off
for /f "delims=" %%a in ('wmic OS Get localdatetime ^| find "."') do set DateTime=%%a
set Yr=%DateTime:~0,4%
set Mon=%DateTime:~4,2%
set Day=%DateTime:~6,2%
set Hr=%DateTime:~8,2%
set Min=%DateTime:~10,2%
set Sec=%DateTime:~12,2%
set BackupName= File Name__%Yr%-%Mon%-%Day%_(%Hr%-%Min%-%Sec%)
ffmpeg -i "http://a.files.bbci.co.uk/media/live/manifesto/audio/simulcast/hls/uk/sbr_high/ak/bbc_radio_three.m3u8" -c copy -t 01:35:00 "Early Music Late %Yr%-%Mon%-%Day%".ts
Eventually I found a forum in which this very matter was being discussed, and someone suggested not using the " " around the m3u8 URL. When I removed them from the Program Script box on the "Start a Program" page in Task Scheduler, I got this error message.
So I clicked Yes and it worked!!
Oddly enough the task to shut down my PC at a given time still worked in Windows 10.