Help with scripting an automated email with torrent info
Register

We are the best invite forum on the internet! Here you will find free invites, free seedboxes, free bonuses, and much more. Our members know the true meaning of sharing and have created a truly global bittorent community! Our site has the most up to date information on all private trackers and our members will guide you and introduce you to this truly secretive and enlightened club. Ready to get started? Register now!


Results 1 to 4 of 4
  1. #1

    Join Date
    Aug 2010
    Location
    US
    Posts
    302

    Default Help with scripting an automated email with torrent info

    Hey guys, so I'm using Chatzilla Auto Downloader. I'm fairly certain you don't need knowledge of the particular program to help me out though.

    Anyway, it's got an option to create a script, and here is what it looks like when I click to add an executable command:



    I found a .vbs script file on the internet that I have all set up. In CMD you just get into the folder that contains the sendemail.vbs file and type:
    sendemail.vbs johndoe@gmail.com "this is my title" "this is my subject"
    and it all works fine.

    Right now, I just have the following .bat file that gets executed by the Auto Downloader:
    "C:\sendemail.vbs" johndoe@gmail.com "A download just started" "Just thought you might want to know"

    But I know it has a whole bunch of arguement/variable labels and I'd like to make use of them:
    $(year)
    $(month)
    $(day)
    $(hour)
    $(minute)
    $(second)
    $(milli)
    $(Category)
    $(TorrentName)
    $(Uploader)
    $(TorrentSize)
    $(PreTime)
    $(TorrentUrl)
    $(TorrentSslUrl)
    $(TYear)
    $(Artist)
    $(Show) = $(Movie) = $(Name1)
    $(Album) = $(Name2)
    $(Format)
    $(Bitrate)
    $(Media)
    $(Tags)
    $(Scene)
    $(Log)
    $(Cue)
    $(Site)
    $(Tracker)
    $(TrackerShort)
    $(TorrentPathName)


    I haven't been able to figure out how to set this thing up so the title of the email I send myself has this $(TorrentName) and $(TrackerShort) info in it. I'm sure it's something very simple, but I need help - that one semester of C programming 10 years ago isn't cutting it.

    If I left out anything that you need to solve my problem, just let me know and I'll get back to you as soon as I can.

    Thanks, M&M

    Last edited by m_amp_m; November 21st, 2010 at 06:52 AM.


  2. To remove ads become VIP. Inquire about advertising here.
  3. #2

    Join Date
    Oct 2010
    Posts
    10

    Default

    Haven't used this program, but based on your post:

    I think what you want to do is put "$(TorrentName)" and "$(TrackerShort)" in the program arguments box. The quotes are needed to group them into a single argument in case they have spaces. It is possible that your program will automatically put the quotes around those arguments. Try it both ways if it doesn't work.

    In batch files, %1 and %2 are the first and second command line arguments. So in the subject message of the vbs script you could just put "Download of %1 from %2 just started" but this won't work because the quotes will break things up and now sendmail.vbs won't know what the arguments are. I believe you can put "Download of %~1 from %~2 just started" and this will work. The %~1 will insert the first command line argument without the quotes.

    I will be surprised if this actually works ;) but its a first step. Let me know if you don't understand something.

  4. #3

    Join Date
    Aug 2010
    Location
    US
    Posts
    302

    Default

    besmarter, I like your confidence.

    And IT WORKED -- First try, right after changing the .bat and adding the arguments!

    Yeah, I had no idea what I was supposed to put into the .bat that would make it correlate to the arguments, but %~1 worked, and so did having the arguments inside of quotes!

    This is so cool -- I love that I'll now know exactly when torrents have started/finished and what they are/where they came from without having to be in front of a computer.

    Thanks again, besmarter, for your help!
    M&M

  5. #4

    Join Date
    Oct 2010
    Posts
    10

    Default

    Ha! Sometimes things go right the first time :)

Similar Threads

  1. Help With ruTorrent & creating New Torrents
    By MearCat99 in forum Help
    Replies: 4
    Last Post: December 4th, 2010, 10:41 PM
  2. Help with PTN (support email)
    By Rebecca1 in forum Help
    Replies: 3
    Last Post: February 11th, 2010, 11:11 AM
  3. help with "torrenting" on a mac
    By Elopez1989 in forum Help
    Replies: 6
    Last Post: July 30th, 2009, 10:32 AM
  4. Help with DIR-655, QOS and torrents.
    By Syphor in forum General Discussion
    Replies: 2
    Last Post: February 22nd, 2009, 10:15 AM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •