get_iplayer and Windows batch files

Andy Wedge andy_wedge at
Mon Jan 16 05:51:16 EST 2012

> -----Original Message-----
> From: Shevek
> Sent: 15 January 2012 23:30
> Subject: Re: get_iplayer and Windows batch files
> On 15 January 2012 17:55, Clive <clivebuc at> wrote:
> > I use get_iplayer at the prompt in both Windows and Linux. In
> > I have tried using batch files in the past - when I wamt a number of
> > d/l and want to automate them. I have found that it does not work.
> > batch file runs get_iplayer and the first item is duly d/l but then
> > am returned to the command prompt and the second and subsequent
> batch
> > lines never run. Is there a way to use get_iplayer from batch files
> > (or from the Linux
> > equivalent) for multiple items?
> >
> I have a batch script set up to run daily using Windows task manager.
> The trick is that by default .pl files are not associated to anything
> windows (they are, I assume, under Linux) so you have to actually call
> perl.exe and pass as an argument and then the arguments
> get_iplayer.
> This is my script which downloads multiple programmes of both TV and
> Radio. When I want to add anything I simply add it to the list at line
> 4 for TV and line 6 for Radio:
> @echo off
> cd /d "C:\Program Files (x86)\get_iplayer\"
> "C:\Program Files (x86)\get_iplayer\perl.exe" "C:\Program Files
> (x86)\get_iplayer\" --refresh --force dontshowanymatches

I have the programs I want to download defined in PVR entries. My
command file runs twice a day via the Windows 7 task scheduler and calls
the basic get_iplayer.cmd file with the pvr option. I had some problems
previously when downloads failed leaving partial .flv files and the
pvr_lock file in place which prevented further runs starting so I just
clean both of these out to start with now. My videos are downloaded to
my D: drive. All other files are in the default Windows install folders.

@echo on
cd "D:\get_iplayer\videos"
if exist *.flv del *.flv
cd "C:\Users\andy_wedge\.get_iplayer"
if exist pvr_lock del pvr_lock
cd "C:\Program Files (x86)\get_iplayer"
get_iplayer.cmd --pvr


More information about the get_iplayer mailing list