Jump to content

WinRAR integration in uTorrent (Need expert help)


Recommended Posts


I found a lot of good answers in this site while searching for my problem but couldn't find specifically what I wanted. I'm also very rusty when it comes to switches and command line controllers, etc.

I download a lot of content that comes compressed in RAR parts. I'm trying to create a convenient process in which all these parts get extracted and dumped in a special folder after downloading. Thus, saving me the time where I have to go and extract them individually.

uTorrent has a function in which it can run a program after the torrent has been downloaded. A lot of people mentioned that it's possible to call WinRAR through the command line or even create a batch file that gets called once the torrent downloads, looks for any *.001/*.rar files and extracts them in the same directory. Except, I have no clue how to write that. However, I can provide you with information that uTorrent provides:

In the "Run Program" section of the Torrent Properties when downloading, it offers 3 commands that can be used:

%F - Name of Downloaded File

%D - Directory where files are saved.

%N - Title of torrent

I'm guessing that the %D is going to be our lead. From what I wrapped around my head, here's the pseudo code of what i'm trying to do:

I don't know if unrar is registered under system commands or not, I'm assuming so:

unrar.exe %D (*.001 / *.rar) - There needs to be an if clause or something to figure out if the files are in *.001 format or *.rar format this way it extracts every form of archived rar files.


delete all archive files except the extracted. Which in this case, we can extract the files to a subfolder and calling a delete command on all files in the main folder and leaving the subfolder intact with the extracted data.

I know this sounds long and tedious, but I don't know where else I'd go to ask.

Thanks in advance.


I've tried the following, except it didn't work. Nothing happened:

C:\Program Files\WinRAR\UnRAR.exe x -o- %D\*.* %D\

(Basically trying to extract anything in the directory to the directory itself)

When I test downloaded something, nothing got triggered. I'm not sure if it's uTorrent or WinRAR that's not configured right.

Again, thank you very much for taking the time to look at this.

Link to comment
Share on other sites

If you need to do anything more complex than a one-liner (that is, if you need conditional if-then-else logic or something), then you're going to have to create a batch file instead and have µTorrent execute that instead.

As for where the problem lies, try running your command (with %D replaced with the relevant path) from Start > Run > cmd, and see what happens. Could always be a quotation issue (you might need quotes around the path).

Link to comment
Share on other sites

  • 6 months later...

okay I just want to move one file when its done to a tivo file that auto uploads to my tivo i have tried

"%D C:\Documents and Settings\Benjamin\My Documents\Upload"


"C:\Documents and Settings\Benjamin\My Documents\Upload %D"

I have nothing else I know to try

please help or point mt to the forum that i can find out.

Thanks for your time ♥Benji

Link to comment
Share on other sites


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

  • Create New...