2

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

joschi
  • 21,387
  • 3
  • 47
  • 50

3 Answers3

6

Yes, take a look at wget.

Wesley
  • 32,690
  • 9
  • 82
  • 117
2

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

Richard Holloway
  • 7,456
  • 2
  • 25
  • 30
1

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

Joey
  • 1,853
  • 11
  • 13