Click to See Complete Forum and Search --> : Automatic Downloader


Botnaim
09-15-2008, 07:30 AM
Hey, I know Java pretty well, and I'd like to create an application which automatically downloads from the web, on a date & time specified a file. [The first result of the filename in a chosen torrent search engine for example]

But my problem regards the web and bittorrent.
I don't want to create a new bittorrent client, since I'd have to learn the BT protocol and I believe it's a bit over the top for me right now.

So what I need is, to be able to automatically go to a link and make another program (any famous BT client) to start downloading that link.

How can it be done if at all?
I mean if I go to a BT search engine, click on a link and "open" my client automatically opens and starts downloading.

I need to imitate that click of 'open' with my own application. Atleast thats the way I see it.

Anyway anyyyyyy advice will be highly appreciated. Thanks in advance!!

Khalid Ali
09-15-2008, 05:04 PM
so what I understand is that you still want to use a BitTorrent client but only you want to trigger the download of actual file using java?
if the above is correct then something like this may work
get the url, download the file on your pc somewhere, once the filewith.torrent extension is downloaded then use java command to run dos commands

something like

Runtime p = Runtime.getRuntime();
p.exec("bittorrent.exe The.Daily.Show.2008.09.05.torrent");

Botnaim
09-16-2008, 01:31 AM
What family is the Runtime class under, and I can I learn more about java running dos commands, any link to an article/ API?

Btw anyone has any nice ideas of how can I decide which file is most appropriate to the search word the user inserts rather than the first result?

My aim for the program is self-usage, and usually I search for popular tv shows or such, so in the correct date the first result is usually ok. But I'm wondering if there are any nicer ideas.