File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes General Computing and the fly likes How download file from http in .bat file? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » General Computing
Bookmark "How download file from http in .bat file?" Watch "How download file from http in .bat file?" New topic
Author

How download file from http in .bat file?

Robert Paris
Ranch Hand

Joined: Jul 28, 2002
Posts: 585
How would I download a file in a command prompt (i.e. a ".bat" file)?
Eric Pascarello
author
Rancher

Joined: Nov 08, 2001
Posts: 15376
    
    6
Are you talking about you surf to a site and you want to download it, or you want to let people download it off of your site?
If it the first one, you can type the drct link to the file and 75% of the time it will allow you to download it.
Robert Paris
Ranch Hand

Joined: Jul 28, 2002
Posts: 585
I mean, in a command prompt I want someone to be able to type in the URL of a ".zip" file (for example) and download that into a file on their harddrive.
Eric Pascarello
author
Rancher

Joined: Nov 08, 2001
Posts: 15376
    
    6
And what language are we talking about here? asp, jsp, javascript, php etc.
Robert Paris
Ranch Hand

Joined: Jul 28, 2002
Posts: 585
??? What do you mean what language - asp, etc? I mean using a command prompt to download something. For example on Linux, there's Lynx. Pretty much every distribution of linux has it - it's standard. What's the standard on windows?
Adrian Yan
Ranch Hand

Joined: Oct 02, 2000
Posts: 688
try this one, wget for windows: http://www.interlog.com/~tcharron/wgetwin.html.
Eric Pascarello
author
Rancher

Joined: Nov 08, 2001
Posts: 15376
    
    6
Man I was not awake when I was thinking about your question...LOL
Adrian Yan
Ranch Hand

Joined: Oct 02, 2000
Posts: 688
whahahhahaaa...
Randall Twede
Ranch Hand

Joined: Oct 21, 2000
Posts: 4347
    
    2

i cant imagine why anyone would want to do that, but i have to assume there is a good reason.


SCJP
Visit my download page
Adrian Yan
Ranch Hand

Joined: Oct 02, 2000
Posts: 688
You mean downloading a file thru command? I do that all the time, I love using wget to download files.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How download file from http in .bat file?