View Single Post
Old 28-Feb-2011, 6:12 AM   #5
GroundUrMast
Moderator
 
GroundUrMast's Avatar
 
Join Date: Oct 2010
Location: Greater Seattle Area
Posts: 4,681
Improved Batch file for recording

Code:
@echo off
for /f "tokens=2-4 delims=/ " %%a in ('date /T') do set year=%%c
for /f "tokens=2-4 delims=/ " %%a in ('date /T') do set month=%%a
for /f "tokens=2-4 delims=/ " %%a in ('date /T') do set day=%%b
set TODAY=%year%%month%%day%
for /f "tokens=1 delims=: " %%h in ('time /T') do set hour=%%h
for /f "tokens=2 delims=: " %%m in ('time /T') do set minutes=%%m
for /f "tokens=3 delims=: " %%a in ('time /T') do set ampm=%%a
set NOW=%hour%%minutes%%ampm%
set DTSTAMP=%TODAY%%NOW%
CD C:\Program Files\Silicondust\HDHomeRun
hdhomerun_config 101bec60 set /tuner0/channel auto:39
hdhomerun_config 101bec60 set /tuner0/program 1
hdhomerun_config 101bec60 save /tuner0 "C:\Documents and Settings\GroundUrMast\Desktop\HD Homerun\Blue_Bloods_%DTSTAMP%.mpg"
Here is an 'upgraded' version of the batch file I use to record OTA to hard-disk on my XP machine. It adds the year+month+day+hour+minute+AM/PM date/time stamp to the file name. now I don't have to manually rename the file after recording a show. I create a batch file for each show title which I expect to record more than one time.
__________________
If the well is dry and you don't see rain on the horizon, you'll need to dig the hole deeper. (If the antenna can't get the job done, an amp won't fix it.)

(Please direct account activation inquiries to 'admin')

Last edited by GroundUrMast; 18-Nov-2013 at 6:37 PM. Reason: Formating
GroundUrMast is offline   Reply With Quote