| ECS-L Home Automation and Security Archives |
| Subject: From: Date: | Re: [ECS] problem upgrading Don Stephens Wed, 5 Jan 2000 06:13:21 -0800 |
Tom: And I thought I got up early. :-) OK, here's TVL.BAT. It requires three arguments, Time Zone,Amount of Days forward, and the last number channel override. In my case it looks like this. TVL.BAT TZ-P 8 1. This is reflected in the TVL.BAT Item in your ECS.CFG. If you run this manually.... DEL ISPSTAT.DAT Deletes file ISPSTAT.DAT IF "%1"=="" GOTO ERR If there is no argument (TZ-P) the batch file jumps to ERR, else.. rem Generate TVLDL.BAT to download listings starting at 12:00AM rem (%2 is the day-count - default is 8 days) TVL0 %1 %2 TVL0 Runs with 1st and 2nd arguments, TZ-P and 8 or TVL0 TZ-P 8 rem Download listings: CALL TVLDL Calls the batch file TVDL and then returns here... START /W RASDIAL /DISCONNECT This is some of Mark's magic stuff to deal with the state of the modem.. IF NOT EXIST TVL.HTM GOTO ERR If the file TVL.HTM isn't found then jump to ERR... rem Convert HTML to text file and assign chan #s if applicable rem (%3 denotes channel# override): TVL1 TVL.HTM %1.CHN %3 TVLNEW.TXT This converts TVL.HTM to TVLNEW.TXT parsing the stuff in %1.CHN or in my case, TZ-P. At this point TVLNEW.TXT should exist...The 3rd argument tells the executable TVL1 if you want to override the channel numbers... rem Delete unwanted channels: FILTER @%1.CHN TVLNEW.TXT 0 29 Throw out unwanted channels from %1.CHN or in my case TZ-P.CHN... rem Calculate length (minutes) of each show: TVL2 TVLNEW.TXT TVL.TMP Like Mark says in the comment...TVL.TMP is a temporary file storing the future TVLNEW.TXT COPY TVL.TMP TVLNEW.TXT DEL TVL.TMP Coping the TMP file to TXT file, and then deleting the TMP file rem Save original TVLNEW.TXT (for possible reference) COPY TVLNEW.TXT TVLNEW0.TXT creating a TVLNEW0.TXT, mirroring the TVLNEW.TXT file.. And So on. You can copy TVL.BAT to another file and place pauses (PAUSE) between the commands of this new file and watch it execute. Just make sure you include the three arguments TimeZone, Amount of Days, Switch for channel override (0 or 1) and see what happens. I'm going to be home for part of the day, so drop me a note if you have any questions. Don