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

I'm struggling with the windows commandline for years. Is it possible to download a file over http(/https) with the programs that are shipped with windows by default?

I know that I can download or program additional software and add it to the %PATH% to do the job but I'm looking for a solution that works out of the box.

This program should be available on the home version of windows.

share|improve this question

migrated from May 12 '12 at 18:09

This question came from our site for professional and enthusiast programmers.

Well, there is no such program other than Internet Explorer (and that's not quite suitable). What's wrong with using wget from for example? – 0xC0000022L May 11 '12 at 22:56
I like it to use things I can find on any computer, without downloading things that should already be there (also it's pretty ironic that I would have to download a program if I want to be able to download things). – sfx May 11 '12 at 23:05
I don't know every stackexchange board yet and I thought batch would be a stackoverflow question. Sorry for the mistake. – sfx May 11 '12 at 23:07
What versions of Windows do you have in mind? Vista, 7 or also XP? – Peter Hahndorf May 12 '12 at 18:14
bitsadmin.exe may be an option, depending on your version of Windows. I think it works for generic http downloads, i.e., even if the server doesn't support BITS, although I'm not certain. – Harry Johnston May 13 '12 at 0:52

4 Answers 4

In Windows 7 or 8:

open powershell.exe and type:

(New-Object System.Net.WebClient).DownloadFile("","C:\g.png")
share|improve this answer
Would this not also work in Windows XP and Vista, provided Powershell was installed? – kreemoweet May 12 '12 at 22:13
Yes, it should work in XP and Vista but he didn't want to install anything. I was more concerned that PowerShell is not part of the Windows 7 Home Edition, but it seems it is. – Peter Hahndorf May 12 '12 at 22:25

You could write a batch file to open iexplore.exe and load an URL, if the URL went straight to the download page. I don't think this is the best option (agree wget or curl would work more the way you seem to be looking for) but if you want to use OEM-only tools this is an option.

See Internet Explorer Command-Line Options

IE - Open website in multiple tabs - possible with .js file

Sometime back I wanted to open multiple websites in different tabs. I tried something like below

iexplore "" "" ""

As you might have tried, that didnt work as expected. I found a .js script to do that for me. Here it is below. Have the script in a .js file. I couldnt locate where I found it from. But I am guessing that it was from Eric Lippert blog.

var navOpenInBackgroundTab = 0x1000;
var oIE = new ActiveXObject("InternetExplorer.Application");
oIE.Navigate2("", navOpenInBackgroundTab);
oIE.Navigate2("", navOpenInBackgroundTab);
oIE.Navigate2("", navOpenInBackgroundTab);
oIE.Visible = true;

Save the above code in launchie.js. Double click. There you go.

share|improve this answer
Please learn how to format posts. Check their preview so that they really look like intended. You need to indent code by 4 spaces or by pressing Ctrl-K on the selected code. You also should quote anything you didn't write yourself by using the blockquote feature. Thank you. – slhck May 12 '12 at 19:55
Well, I've obviously got a lot to learn about posting on here. Thanks for the information. I will educate myself before posting further. – calenti May 13 '12 at 5:04

There is no "Windows-native" standalone .exe program that simply downloads a file via HTTP.

Internet Explorer exposes much of its functionality via COM components/objects, including HTTP/HTTPS dowloading, but this requires at least some scripting to use.

share|improve this answer

As previously stated, there is not. The best idea is to have a windows version of Wget on a USB stick, can do anything, but quite difficult to understand all its possible options.

Try the binaries provides by the gnuwin32 project:

Although they seem to be a bit late on gnu releases.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.