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).