Jump to content

Simple Script


krowie

Recommended Posts

Hey all,

Im trying to write a really basic script and needed some help.

Basically when I download torrents I like to seed for a couple of days. So I make use of an incoming folder and an outgoing folder. Incoming is where torrents are downloaded to. Outgoing is where RAR files are extracted to and single files copied to ... I would like to automate that process entirely.

I already have a simple run after completion command using the SCRU scene unpacker

c:\SCRU\SCRU "%D" *

Works pretty well .. only problem is when a torrent (like a movie) doesn't come in Rar files it just stays in my incoming directoy.

So what I have been trying to do which Im sure someone will know quite easily is the following:

After a torrent has been downloaded

- If the torrent has been downloaded in a folder

- Does the folder have rar files in it?

- If it does c:\scru\scru "%D" *

- If it Doesn't - copy *.avi to c:\stuff\outgoing\

- If the torrent is a single file ->copy *.avi to c:\stuff\outgoing\

Think thats it! .. thanks in advnace any help or direction would be appreciated

Krow

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...