Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

How can I download something from the web directly without Internet Explorer or Firefox opening Acrobat Reader/Quicktime/MS Word/whatever?

I'm using Windows, so a Windows version of Wget would do.

share|improve this question
Just right clicking a file and hitting "Save Target As" or "Save Link As" or "Save As" (language varies depending on your browser) will work. – BrainSlugs83 Oct 22 '12 at 5:53
The point of having a command is being able to write a batch file and run it (perhaps scheduled as a task) anytime you want. That's where the GUI falls short. – Jbm Nov 15 '12 at 14:11
How do you download with MS Word? – Jaime Hablutzel Aug 20 '14 at 12:16
@JaimeHablutzel Why would you ever want to download something via MS Word? MS Word is not a terminal. – Braden Best May 14 '15 at 20:53
@B1KMusic look at the original question, I was having the same doubt as you – Jaime Hablutzel May 15 '15 at 0:28

15 Answers 15

up vote 115 down vote accepted

Wget for Windows should work.

From the Wget Wiki FAQ:

GNU Wget is a free network utility to retrieve files from the World Wide Web using HTTP and FTP, the two most widely used Internet protocols. It works non-interactively, thus enabling work in the background, after having logged off.

From this section of FAQ, download links are suggested:

Windows Binaries

Link with courtesy of Jernej Simončič is used instead.

share|improve this answer
There's also Winwget if you prefer a gui – Col Aug 19 '09 at 11:47
The standalone version is downloadable from this link. – Vito Gentile Feb 24 '14 at 11:19
More recent, even up-to-date (as of today) Windows builds, provided by Jernej Simončič – Gras Double Feb 16 '15 at 19:37
@VitoShadow broken link – The Red Pea Jun 14 '15 at 15:09
@cixelsyd Updated link to alternative source. – clearkimura Nov 21 '15 at 11:11

An alternative I discovered recently, using PowerShell:

$client = new-object System.Net.WebClient

It works as well with GET queries.

If you need to specify credentials to download the file, add the following line in between:

$client.Credentials =  Get-Credential                

A standard windows credentials prompt will pop up. The credentials you enter there will be used to download the file. You only need to do this once for all the time you will be using the $client object.

share|improve this answer
You can also do it in one-line: (new-object System.Net.WebClient).DownloadFile('','C:\tmp\file.tx‌​t') – schellack Oct 14 '11 at 20:32
@Rob powershell is built in to Windows... – nhinkle Dec 14 '12 at 4:22
From Vista up, yes. – Arran Dec 19 '12 at 12:44
I wish I could favourite this answer! – mjbnz Apr 9 '13 at 4:18
@Arran Okay, for the people with systems that are morbidly out of date (Microsoft ended mainstream support for Windows XP in April 2009, [more than four years ago], and is ending extended support in April 2014 [less than one year from now]), for those users, yes, it's not built-in; they will have to download PowerShell separately (which is still easier to download and setup than any of the GNU toolchains out there) -- but honestly, figuring out how to download a file from the command line should be the least of such a person's computer-related worries... – BrainSlugs83 Jun 4 '13 at 21:09

If you have PowerShell >= 3.0, you can use Invoke-WebRequest

Invoke-WebRequest -OutFile index.html

Or golfed

curl -outf index.html

Download a file via HTTP in Windows

share|improve this answer
IMHO The best answer for recent Windows. – Cédric Belin May 31 '14 at 6:12
This doesn't work with redirects on sourceforge (and possibly other sites), as opposed to System.Net.WebClient. However you can make Invoke-WebRequest work by adding -UserAgent [Microsoft.PowerShell.Commands.PSUserAgent]::FireFox. – Ela782 Jan 7 at 12:22
This is the right answer now, @CédricBelin is right. The question & accepted answer are pretty old. – Factor Mystic Jan 10 at 2:43
It's more idiomatic & shorter to use the iwr alias than the curl alias. – Factor Mystic Jan 10 at 18:56
@FactorMystic it is my answer, I believe I have authority over it – Steven Penny Jan 10 at 23:54

Save the following text as wget.js and simply call

cscript /nologo wget.js

This is the code:

var WinHttpReq = new ActiveXObject("WinHttp.WinHttpRequest.5.1");
WinHttpReq.Open("GET", WScript.Arguments(0), /*async=*/false);

/* To save a binary file use this code instead of previous line
BinStream = new ActiveXObject("ADODB.Stream");
BinStream.Type = 1;
share|improve this answer
Thank you, that's exactly what I needed ! – Isaac Clarke May 22 '13 at 6:57
What language is this script in?Looks useful to my current task. I'd like to find more reference documentation. Doesn't look quite like vb – G-. May 30 '14 at 14:54
Useful for single files. Needs enhancing for recursive download and https. – opticyclic Nov 26 '14 at 19:07
@G-. I'm late to the party, but that's JavaScript. – prooffreader Oct 21 '15 at 20:52

Windows has its own command line download utility - BITSAdmin:

BITSAdmin is a command-line tool that you can use to create download or upload jobs and monitor their progress.

EDIT: 26.01.15 - Here's my overview of how a file can be downloaded on windows without external tools

And a complete bitsadmin example:

bitsadmin /transfer myDownloadJob /download /priority normal http://downloadsrv/ c:\
share|improve this answer
Interesting. That is one clumsy piece of software compared to wget. – Matt H Mar 28 '12 at 21:36
Note that It doesn't ship with Windows XP, and maybe not with other versions either. – Ian Dunn May 22 '12 at 23:06
Update: BITSAdmin is deprecated and is not guaranteed to be available in future versions of Windows. Administrative tools for the BITS service are now provided by BITS PowerShell cmdlets. – nulldev07 Sep 28 '12 at 5:49
Thanks, will try it. – Ayusman May 22 '13 at 23:58
@MattH: because it's nto suppsoed to be wget in the first place? - see – peterchen Sep 27 '13 at 12:17

I made a quick myGet.bat file which calls the PowerShell method described above.

@Echo OFF
SetLocal EnableDelayedExpansion
Set Var=%1
Set Var=!Var:http://=!
Set Var=!Var:/=,!
Set Var=!Var:%%20=?!
Set Var=!Var: =?!
Call :LOOP !var!
Echo.Downloading: %1 to %~p0!FN!
powershell.exe -Command (new-object System.Net.WebClient).DownloadFile('%1','%~p0!FN!')
If "%1"=="" GoTo :EOF
Set FN=%1
Set FN=!FN:?= !

I borrowed some code from Parsing URL for filename with space.

share|improve this answer
why the downvote? this looks okay to me and is a direct response to the question. Yes it's clunky and could use improvement, like escaping ampersands (&) in the url, but it works as is. – matt wilkie Apr 24 '13 at 5:02

There is also a native cURL for Windows available here. There are many flavors available- with and without SSL support. You don't need the extra baggage of Cygwin and the likes, just one small EXE file.

share|improve this answer

I was searching for the same, and since I had no privilege to install any of the above packages, I went for a small workaround (to download 30+files):

  • I created a batch file
  • Listed all the files
  • Put firefox.exe at the beginning of each line
  • Went to the firefox directory in Program Files
  • Ran it.
share|improve this answer
+1 for sideways thinking – matt wilkie Apr 24 '13 at 5:05

And has a nice GUI (and it's free), for mirroring sites. It also has a Linux version.

share|improve this answer

If PowerShell is an option, that's the preferred route, since you (potentially) won't have to install anything extra:

(new-object System.Net.WebClient).DownloadFile('', 'C:\tmp\file.tx??t')

Failing that, Wget for Windows, as others have pointed out is definitely the second best option. As posted in another answer it looks like you can download Wget all by itself, or you can grab it as a part of Cygwin or MSys.

If for some reason, you find yourself stuck in a time warp, using a machine that doesn't have PowerShell and you have zero access to a working web browser (that is, Internet Explorer is the only browser on the system, and its settings are corrupt), and your file is on an FTP site (as opposed to HTTP):

start->run "FTP", press "OK".

If memory serves it's been there since Windows 98, and I can confirm that it is still there in Windows 8 RTM (you might have to go into appwiz.cpl and add/remove features to get it). This utility can both download and upload files to/from FTP sites on the web. It can also be used in scripts to automate either operation.

This tool being built-in has been a real life saver for me in the past, especially in the days of -- I downloaded Firefox that way once, on a completely broken machine that had only a dial-up Internet connection (back when sneakernet's maximum packet size was still 1.44 MB, and Firefox was still called "Netscape" /me does trollface).

A couple of tips: it's its own command processor, and it has its own syntax. Try typing "help". All FTP sites require a username and password; but if they allow "anonymous" users, the username is "anonymous" and the password is your email address (you can make one up if you don't want to be tracked, but usually there is some kind of logic to make sure it's a valid email address).

share|improve this answer
+1 for thinking of command line ftp! However wget and powershell were both mentioned well before you joined the party, so -1 there. :-/ – matt wilkie Apr 24 '13 at 5:08
The other powershell answers I saw were all multi-liners and/or had some code smell to them -- this is a short & simple one liner to download a file. -- Also I wanted to provide an answer that covered all the bases. :-) – BrainSlugs83 Jan 12 at 0:20

You can get WGet for Windows here. Alternatively you can right click on the download link of the item you want to download and choose Save As. This will download the file and not open it in the assigned application.

share|improve this answer
This does not provide an answer to the question. To critique or request clarification from an author, leave a comment below their post. – DavidPostill Nov 10 '14 at 9:05

If you want a GUI, then try VisualWget, which is actually clean, and feature full. It is based on GNU Wget for its download engine.

EDIT: updated link.

share|improve this answer
here is an updated link:… (the downloads are at the bottom of the page, use the little arrows on the right) – Reed Hedges May 13 '12 at 12:43
While this link may answer the question, it is better to include the essential parts of the answer here and provide the link for reference. Link-only answers can become invalid if the linked page changes. – DavidPostill Nov 10 '14 at 9:04

If you need a visual Post for Windows, here is one.
You can post data or files with it.

share|improve this answer

An alternative to using gnuwin32 is unxutils which includes wget.

share|improve this answer
you can manage with unxutils but it's old, it uses an old version of wget. gnuwin32 is the thing to use. not quite as convenient to install and not as easy to find things, but it has much more than unxutils too. – barlop Oct 5 '11 at 19:31
While this link may answer the question, it is better to include the essential parts of the answer here and provide the link for reference. Link-only answers can become invalid if the linked page changes. – DavidPostill Nov 10 '14 at 9:06

protected by Nifle Nov 10 '14 at 9:49

Thank you for your interest in this question. Because it has attracted low-quality or spam answers that had to be removed, posting an answer now requires 10 reputation on this site.

Would you like to answer one of these unanswered questions instead?

Not the answer you're looking for? Browse other questions tagged or ask your own question.