HowTo: execute a file download from Windows command line
Under Linux it is often very comfortable to download files quickly from within the shell by typing wget [some URL], especially if you do that from within a script. Under Windows this is not directly possible since there doesn't exist a wget-like program (at least I didn't find one). I guess if you install cygwin, then it may be possible to use wget again, I'd have to check that. Anyway, if you don't want to install cygwin and you have installed ServicePack2 (Win XP), then there is an application called "BitsAdmin" which allows you do to a similar job. The application usually comes under the Support Tools of the ServicePack 2.
Usage:
<installLocation>\bitsadmin.exe /transfer <jobName> /download /priority normal <url to file to download> <path where downloaded file should be stored>So an example could look as follows:
C:\SupportTools\bitsadmin.exe /transfer chromiumUpdate /download /priority normal http://build.chromium.org/buildbot/continuous/LATEST/chrome-win32.zip C:\chromium\chomiumLatest.zipThis downloads a zip-file containing the latest Chromium build (What's the difference between Chromium and Chrome?).
References:
http://msdn.microsoft.com/en-us/library/aa362813.aspx
http://msdn.microsoft.com/en-us/library/aa362812(VS.85).aspx


2 Comments:
Hei Juri,
I've seen you have done additional changes to your blog layout.
I like them...
But in IE i get a lot of Script errors...
I send you a mail with some screens...
The Extended View on your blog is COOL :-)
"Best viewed with Firefox on a resolution of 1280x1024." on a computer with a screen.
:-))
Post a Comment