I want to schedule a batch file for WinAmp

October 4, 2010 at 16:01:30
Specs: Windows Vista, T7500 @ 2.20 Ghz, 2GB RAM
I've been trying for the last few days to set up Task Scheduler to automatically play the latest podcasts of my choice in a playlist at a specific time, as an alarm. I've been able to create a playlist of old podcasts that I manually put in, but I want it to automatically play the latest podcast when the action is triggered. I was told that I'd want to invoke a batch file which would download a file from wget or similar, then pass the parameters on to WinAmp (which is the audio player I use). I was told to come here for help.

So.. help?


See More: I want to schedule a batch file for WinAmp

Report •

#1
October 4, 2010 at 16:24:31
wget will get a file from a site but you need the file name.


=====================================
Helping others achieve escape felicity

M2


Report •

#2
October 4, 2010 at 17:47:24
is there a way to get the url of the most recent podcast? how are the podcast files named on the remote host? is there a name-date-time pattern? or would you have to pull the name from an rss feed?

Report •

#3
October 4, 2010 at 18:25:21
The podcasts I get have no predictable naming scheme.


=====================================
Helping others achieve escape felicity

M2


Report •

Related Solutions

#4
October 5, 2010 at 03:57:07
I have an .xml link to the podcasts, but I can't see any predictable naming system, even if I could, I'd have to re-write the batch file every day, wouldn't I? Is it possible to pull the file straight from the xml feed?

Report •

#5
October 5, 2010 at 04:52:54
Show us the xml link so we can study its syntax and see what can be done.

Report •

#6
Report •

#7
October 5, 2010 at 13:30:14
goto :main

This makes a few shakey assumptions, but
with a little luck it'll get the latest mp3.

:main
@echo off & setLocal enableDELAYedeXpansion

wget "http://www.rtve.es/podcast/radio-nacional/14-horas/SDIA14.xml"

for /f "skip=1 tokens=* delims= " %%a in ('find "mp3" ^< SDIA14.xml') do (
set M=%%a
goto :done
)
:done
del SDIA14.xml

set M=!M:~6!
set M=!M:~0,-7!

wget "!M!"


=====================================
Helping others achieve escape felicity

M2


Report •

#8
October 8, 2010 at 15:34:12
So, how do I get the mp3 to play?

Report •

#9
October 8, 2010 at 22:24:37
"C:\Program Files\Winamp\winamp" "E:\podcast\my.mp3"


=====================================
Helping others achieve escape felicity

M2


Report •

Ask Question