19
8
I want a way to download a file via HTTP given its URL (similar to how wget works). I have seen the answers to this question, but I have two changes to the requirements:
- I would like it to run on Windows 7 or later (though if it works on Windows XP, that's a bonus).
- I need to be able to do this on a stock machine with nothing but the script, which should be text that could be easily entered on a keyboard or copy/pasted.
- The shorter, the better.
So, essentially, I would like a .cmd (batch) script, VBScript, or PowerShell script that can accomplish the download. It could use COM or invoke Internet Explorer, but it needs to run without any input, and should behave well when invoked without a display (such as through a Telnet session).
dload v1.0 a win32 command line tool like wget http://superuser.com/a/833445/384998
– seizu – 2014-10-30T16:52:52.7871
possible duplicate of How to download files from command line in Windows, like Wget is doing?
– bummi – 2015-01-26T12:24:13.150Not a duplicate because this question is specifically looking for something that will run on a stock machine (without additional software, such as wget for Windows). – Jason R. Coombs – 2015-02-01T16:31:56.757
@JasonR.Coombs The accepted answer is the same as one of the answers in that question, so future reader gets nothing more. – Franklin Yu – 2017-11-13T19:17:27.770
I agree; at this point, the more general question supersedes this one. – Jason R. Coombs – 2017-11-14T13:54:09.817