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

Is it possible to copy a file at a HTTP:// URL to a local directory in a BAT or CMD file?

share|improve this question
Which OS are you using? –  Wesley Mar 9 '10 at 2:03

3 Answers 3

up vote 6 down vote accepted

Yes, take a look at wget.

share|improve this answer
Cross-platform as well. –  John Gardeniers Mar 9 '10 at 3:00
Thanks for the info and links, guys. –  Wesley Mar 9 '10 at 3:30

Or cURL will work too. It is supposedly Windows too but I have never tried it on Windows.

share|improve this answer
Curl works in the windows environment. –  RobW Apr 26 '10 at 19:14
Thanks for the info RobW. –  Richard Holloway Apr 27 '10 at 7:42

Side note: WebClient.DownloadFile works fine from PowerShell as well.

share|improve this answer

Your Answer


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