Tell me more ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I need to download a file through http from the command line on a windows server 2008. I am looking for something like wget, but it must be a built-in tool.

Is there such a tool?

share|improve this question
Is PowerShell a built-in tool for you? – mailq Aug 15 '11 at 8:16
Yes, PowerShell is ok. – steenhulthin Aug 15 '11 at 8:28

3 Answers

up vote 6 down vote accepted

If you have PowerShell installed...

(New-Object System.Net.WebClient).DownloadFile("http://icanhazip.com/","icanhazip.txt")
share|improve this answer
Note for those not familiar with this call. The first argument is to the file to download, the second is what to save it as locally. – John Apr 11 '12 at 14:43

you use curl also: http://curl.haxx.se/docs/manpage.html

something like

curl -O http://domain.com/file.gz

should work

share|improve this answer
curl is nice, but not built-in. – steenhulthin Aug 15 '11 at 8:52

No wget equivalent that is built-in/default across Windows.

share|improve this answer

Your Answer

 
discard

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

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