But you can save some more time by pressing, ctrl-c then ctrl-v. My hands are already on the keyboard, and I would rather do the mundane things on the keyboard and not think about them. One thing I do frequently is download files. They can be zip file, tgz, or jpg.
On linux, all I have to do is open the command line, run wget with the file I want to download and it is done. Straight to the point. But how do you do that when you are on a Windows machine? Let me introduce you to cURL, pronounced curl. But I just want to download the file on Windows so let's just learn how to do that.
Easy right? Now you can download files right from the command line all by simply using your keyboard. It is time I confess. This is not the curl tool you are using. It's only an alias. In reality, we are calling the command Invoke-WebRequest. But hey! It works, so we don't care. You can call it in its native format if you want to. Did you like this article? You can buy me a coffee. Share your insightful comments here.
When dealing with software bugs, how you ask the question determines how likely you are to get a good answer. To me programming is talking with a computer. Collectives on Stack Overflow. Learn more. How can I download a file from the Internet via Command Prompt? Asked 4 years, 10 months ago. Active 4 years, 10 months ago.
Viewed 17k times. Improve this question. Govind Parmar This question should be on SuperUser. Yes, off-topic for StackOverflow. Add a comment. Make sure you have a direct link to a file. Links to pages with a download button will not work. Instead, you will either get an error or end up saving the page itself instead of the file. Your email address will not be published. This site uses Akismet to reduce spam. Learn how your comment data is processed.
0コメント