Fool's Gold

Posted on November 10, 2009 by Steve

Now that the old hecat webserver is in cold storage, I set out to recreate the wget script in a DOS batch file. After being spoiled by the innumerable tools in BASH, I feel like I'm trying to do a tune-up with a screwdriver. Nevertheless, I did manage to collect several dozens of mp3 files, and the 99% rule held true, leaving me with one keeper, "Surprise Hotel" by Fool's Gold.

For future reference, here is the much-simplified and less usable script.
set workingdir=C:\wget\
set wgetdate=%DATE:~10,4%%DATE:~4,2%%DATE:~7,2%
set logfile=wget%wgetdate%.log
wget -Q400m -nc -w2 -r -l2 -H -t1 -nv -nd -P 
   %workingdir%shells -np -A.mp3 -i %workingdir%mp3blogs.txt 
   -o %workingdir%logs\%logfile%

FOR %%A IN (DIR /b SHELLS/*.mp3) DO copy empty.txt "SHELLS\%%A"