How to download file from internet in CMD?

Ask a question+
1

Is there any way to download a file from the cmd? (a.k.a terminal)
I have been trying to download a file from a .bat file. And plus I don’t want to download anything. I have tried wget but has not worked.
Please help me :)

add comment

1 Answer

0

Yes, there is one easy way through which you can download file using Cmd.
It can be done using Bitsadmin

bitsadmin /transfer wcb /priority high https://repo1.maven.org/maven2/org/eclipse/jetty/jetty-distribution/9.4.32.v20200930/jetty-distribution-9.4.32.v20200930.zip C:\Users\Username\Downloads\jetty.zip

Username will be replaced by your name
Note:
Antivirus may flag this commnd as threat and will try to block the download. It will show Bitsadmin.exe as malware and in my case it even closed the Cmd.
While specifying the download location you need to metion full file path ( ex: \jetty.zip)

Donwload Page : Jetty Download Page
In the example zip version is used

Bitsadmin Microsoft Page

CuriousCoder 10
add comment

Your Answer