Still learning how to use BitsAdmin.exe in batch files. Here is my script, which fails to finish downloading a file, and leaves just a temp file called "BIT851.tmp" on my desktop. Any idea what I am doing wrong?
echo off
SETLOCAL ENABLEDELAYEDEXPANSION
::------------------------------------------
::
:: Requires BitsAdmin.exe from Windows Resource kit
:: Download name: WindowsXP-KB838079-SupportTools-ENU.exe
::
::------------------------------------------
bitsadmin.exe /reset
bitsadmin.exe /create myDownloadJob
bitsadmin.exe /addfile myDownloadJob^
http://mirror.anl.gov/pub/ubuntu-iso/DVDs/ubuntu/8.04/release/FOOTER.html^
"%USERPROFILE%"\Desktop\FOOTER.html
bitsadmin.exe /resume myDownloadJob
::bitsadmin.exe /list myDownloadJob
::bitsadmin.exe /info myDownloadJob
TYPE "%USERPROFILE%"\Desktop\FOOTER.html
pause