Take the 2-minute tour ×
Server Fault is a question and answer site for professional 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
add comment

3 Answers

up vote 6 down vote accepted

Yes, take a look at wget.

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

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
add comment

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

share|improve this answer
add comment

Your Answer

 
discard

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