Introduction: Download All Sbemails! Batch Downloader.

I just figured out to download all of the strong bad emails!
its pretty easy to do.
and I will try to make it as clear as possible.

The way I figured this out was looking online and seeing that people did it on a mac, and so I took some files and used them with this batch program I made to download all the sbemails!

You can change the code to make this 'auto download' any website that works the same way as homestarrunner.com does.

Step 1: Install WGET

there is a command that you can use on a mac, it is wget, formerly curl, and what it did is you would use it to download the URL that you put after it, EG: WGET http://www.homestarrunner.com/sbemail1.html.
You can Also replace the ".Html" after the url for this website with ".swf" to get the raw swf file to load.

so for this to work, you need to install wget for windows http://users.ugent.be/~bpuype/wget/

basically you just need to download wget.exe and put it in your windows file.

this file is located at C:\Windows on most computers.

it will most likely ask you for permissions to do so.

if you dont have permissions for this then you can get around that by putting it in another directory and changing the code in the batch. ill explain this at the end.

Step 2: Set Up the Batch

For this step, you will want to create a folder where you want to store your newly acquired sbemails. I put mine on my desktop for the downloading process.

now, open up notepad. you cant use microsoft word for this since it has some formating and whatnot (or maybe you can, i just read that you cant and never tried). and you will need to cope and paste the following text.

@echo off
setlocal EnableDelayedExpansion
set var=1
:a
wget http://www.homestarrunner.com/sbemail%var%.swf
if [%var%]==[205] goto b
set /a var=%var%+1
goto a
:b

now save this file, but when you do, save it in the folder you want the emails in, name it sbemail.bat (the important part there is the .bat at the end), and under the menu right under the name section, the [save as type] thing, click [ALL FILES]

then click save

Step 3: Download the EMAILS!!!!

Now, just double click the bat file you just created, and it should auto download all of the emails for you!!!

ENJOY!!!

You will notice this only downloads some of the emails, the ones that have odd url's are excluded, like #200 and various others, but if you all tell me the ones that are like that I will add them to the batch file for other people to enjoy.

Step 4: No Permission?

To do this with out the permission, do everything the same, but the batch file should have this code and the wget.exe should be on your desktop.

@echo off

cd %userprofile%\Desktop\wget.exe

setlocal EnableDelayedExpansion

set var=1
:a
wget http://www.homestarrunner.com/sbmail%var%.swf
pause
if [%var%]==[205] goto b
set /a var=%var%+1
goto a
:b

The "cd %userprofile%\Desktop\wget.exe" edit was from Regulators, thank you for the input.