Philip wrote: > I am using WGet under Windows XP to download files for our community > radio station. But these are files whose names are fixed. > > Now here's a problem: > > How can I tell WGet to download files whose names change each week. > > Specifically: > > The files are hosted at http://www.artistlaunch.com/alhourpub/ > > The filenames are in the format: The_Artistlaunch_Hour_-_02-26-06-1.mp3 > <http://www.artistlaunch.com/alhourpub/The_Artistlaunch_Hour_-_02-26-06-1.mp3> > > > where the date element of the filename (in American date format), and > the segment number, changes every week. > > There are four files to download, and I need to save each of the four to > its proper directory, which is q:\1ZZ music\artistlaunch\artist launch > 1st (2nd,3rd,4th). > > Here's what I tried in the batch file: > > q:\W-Get\bin\wget.exe > -r--output-document=q:\1ZZMUS~1\ArtistLaunch\ARTIST~1\"The_Artistlaunch_Hour_-_??-??-06-1".mp3:http://www.artistlaunch.com/alhourpub/"The_Artistlaunch_Hour_-_??-??-06-1".mp3 > > > It doesn't work. > > Any ideas what would work? > > All non-violent solutions gratefully received.
hi philip, unfortunately HTTP does not allow wildcard characters, so you can't use *, ?, etc., in the HTTP URLs you give to wget. however, you can easily solve your problem with a simple script that provides wget with the complete URLs. -- Aequam memento rebus in arduis servare mentem... Mauro Tortonesi http://www.tortonesi.com University of Ferrara - Dept. of Eng. http://www.ing.unife.it GNU Wget - HTTP/FTP file retrieval tool http://www.gnu.org/software/wget Deep Space 6 - IPv6 for Linux http://www.deepspace6.net Ferrara Linux User Group http://www.ferrara.linux.it
