Jump to content

Batch script to download files from a multiple links


daredevil

Recommended Posts

  • Administrators

I want to make a batch files which takes links from the .txt file and download files from that link. Download is password protected, so we would need to supply username and pass.

 

Basically, it should download file from the link provided and save it to one pre defined folder.

 

Any batch scripting gurus on our forum?

Link to comment
Share on other sites

hmm would be usefull if there's smth like that out there, since for movies or games when u download via rapidshare / megaupload sometimes u get like 80 or more links and its annyoing to copy paste each and download :D

Link to comment
Share on other sites

hmm would be usefull if there's smth like that out there, since for movies or games when u download via rapidshare / megaupload sometimes u get like 80 or more links and its annyoing to copy paste each and download :D

 

lol use Jdownloader if you havent got prenium, otherwise get prenium and get rapidshare manager/megaupload manager :P (or even any download mamager)

Link to comment
Share on other sites

  • Administrators

Does it have to be a batch script?

 

Yes. I want to download Prod Logs and my company doesn't allow to use any softwares rather then batch (preferable) or perl script.

Link to comment
Share on other sites

Well Batch won't support authentication, and you could only really open a process with it - It's not exactly a "real" scripting language. Perl's more like it, but I'm not the guy to help with that.

Link to comment
Share on other sites

Something like this should work (found this on the net).

@echo off

 

%0.ftp echo o mysite.com

%0.ftp echo username

%0.ftp echo password

%0.ftp echo bin

%0.ftp echo cd mydir

%0.ftp echo prompt

%0.ftp echo mget filename.ext

%0.ftp echo bye

 

ftp -s:%0.ftp

Link to comment
Share on other sites

  • Administrators

The one you posted is for ftp and will not work. I did something like this:

 

@echo off
rem Launch google.com, wait 2 seconds, then close the browser.
start http://fearless-assassins.com

ping 127.0.0.1 -n 2 -w 2000 > nul

rem for killing the iexplorer. 
taskkill /im iexplore.exe
exit

 

I can save the session in Firefox, but can't in IE. The only problem to me is doesn't auto saves the file. I need to click on save button and then save it. I want to force IE to auto save the file.

Link to comment
Share on other sites

I was going to ask if it was a computer on a domian or a local .... The easiest way would be to call on a vbs file from your batch that just uses send key (enter) and time it to 3000-4000 milliseconds. If you don't want to use vb you may be able to create a perl script but vb would be easier with windows. Can you use vb or just perl and batch files? :yahoo

Link to comment
Share on other sites

I can code you a perl script when you want. I've been working with Perl for the last 3 years. So I'm not a guru but I can do great stuff.

 

I would need more information about your authentification. What type of auth you need? In Perl you can simulate a whole session authentification. However I want to know if I need to use SSL modules or basic auth modules. Do you have any links (with user/pass) I could use to test and see what you exactly need. At 100% sure we can do it in Perl. In Batch, it would require some DLLs and other programs to be preinstalled.

 

So if no one else answered you, just PM me the information and I'll do it this weekend (more on Sunday). Give me all the specifications you know. If the script need to run all the time and look at a single file, if you want to input that filename while launching the script, etc.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.