Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Possible Duplicate:
Download a file via HTTP from a script in Windows

I've never done any scripting on Windows but now I need to write a batch file that downloads a file off the Internet (amongst other things). If it was Linux I would use wget.

Is there a built-in executable that will download a file to a given directory? This needs to run on Windows XP.

share|improve this question

migrated from stackoverflow.com Mar 9 '10 at 2:27

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

marked as duplicate by akira, quack quixote May 18 '10 at 12:07

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

What makes you think you can't use wget on windows? See gnuwin32.sourceforge.net/packages/wget.htm. –  nb2580 Mar 8 '10 at 10:16
There is a somewhat built-in HTTP download command. It comes with the resource kit and it is called bitsadmin.exe . FTP download , on the other hand, can be done with a basic DOS script. –  djangofan Dec 23 '11 at 23:39

2 Answers 2

There is no builtin. But wget works just fine in batch files.

share|improve this answer
thats wrong, msdn.microsoft.com/en-us/library/aa362813(VS.85).aspx is part of the system since windows xp. –  akira May 18 '10 at 9:50
@akira - wow! i didn't know about that one. it turns out that i only installed half of the support tools and i was missing this one among some others. thanks! –  djangofan Dec 7 '11 at 21:13

Wget has a Windows version as well. I assume you know how to use it. Besides Wget, there is also cURL (Windows version here, but I haven't used it). You can it a try.

share|improve this answer

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