How to download a file on the internet using Batch? I know about download.exe but I don't know why whenever I type the command "download.exe www.website.com D:/" it says "The filename D:/ contains illegal characters". Any help would be appreciated.
Thanks for your attention
PaperTronics
How to download any file using CMD??? PLease Help !!!
Moderator: DosItHelp
-
- Posts: 118
- Joined: 02 Apr 2017 06:11
Re: How to download any file using CMD??? PLease Help !!!
Well i won't download such a tool only to test, but it probably could be programmed or compiled wrong, so it only supports download to the actual path, so this might work:
penpen
Code: Select all
pushd "Z:\"
:: assumed that download.exe could be found from "Z:\" (its location is "Z:\", or listed in the PATH variable)
download.exe "www.website.com" "test.txt"
popd
penpen
-
- Expert
- Posts: 1166
- Joined: 06 Sep 2013 21:28
- Location: Virginia, United States
Re: How to download any file using CMD??? PLease Help !!!
What the hell is download.exe? That sounds incredibly sketchy. Use cURL or wget like a normal person.
-
- Posts: 118
- Joined: 02 Apr 2017 06:11
Re: How to download any file using CMD??? PLease Help !!!
Thanks, penpen and ShadowThief for replying. Although I figured it out myself but still wouldn't be able to do it without you guys. Thanks.