Jump to content
Comet Forums

Download contents of torrent via command


Recommended Posts

I'm attempting to create a Windows service which will essentially allow me to start torrent downloads on my home PC remotely. It will check my email account reguarly for an email with a certain subject and download the torrents whose URLs I've embedded in the email body.

For the downloading part, I've decided to programmatically call windows' cmd.exe (the command prompt) and execute BitComet.exe with certain parameters. Here is the actual call I'm making:

bitcomet --url=NAME.torrent --silent --tray

When this is executed, it successfully downloads the torrent file, but not the contents. It then opens a prompt to "Create a new BitTorrent task" which is simply a prompt to select the files in the torrent to download and begin the download. It appears that I can download the contents (after downloading the *.torrent file) by subsequently calling the following command:

bitcomet C:\NAME.torrent --silent --tray

Is there a single command to automatically download the contents of the torrent via the command line?

Thanks in advance.

Edited by im1dermike (see edit history)
Link to comment
Share on other sites

I was actually able to resolve this. I used an open source library called MonoTorrent to "load" (download) the torrent and then ran the open torrent command. Oddly enough, it doesn't seem to like the --silent flag. I was only able to get it to work after instead using -s.

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
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.

 Share

×
×
  • Create New...