Mourning the loss of our friend, WhitPhil.
There's no such thing as a stupid question, but they're the easiest to answer.
JoinTour
Login
Search
 
All Other Software
Tag Cloud
access audio black screen blue screen boot bsod connection crash desktop dvd email error excel excel 2003 firefox hard drive hardware hdmi hijackthis internet itunes keyboard laptop malware monitor motherboard network networking outlook problem ram recovery router screen slow sound spyware tdlwsp.dll trojan upgrade vba video virus vista vundo windows windows 7 windows vista windows xp wireless
Search
Search for:
Tech Support Guy Forums > Software & Hardware > All Other Software >
WinRAR Command Line Help

Tip: Click here to scan for System Errors and Optimize PC performance
[ Sponsored Link ]

Closed Thread
 
Thread Tools
XentroX's Avatar
Junior Member with 1 posts.
 
Join Date: Nov 2009
Experience: Advanced
06-Nov-2009, 12:37 PM #1
WinRAR Command Line Help
Hi,

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 don't know how many of you use uTorrent, but I use it to download my TV shows because I cannot afford cable. I have it running on a Windows 7 Server and it is hooked up directly to my TV. I have XBMC running to catalog everything for me and makes it easy to access.

The only problem that I've had this whole time is the long process of having to individually extract every episode after it's done downloading. 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.

then:

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.

EDIT:

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.

Last edited by XentroX : 06-Nov-2009 01:10 PM.
JohnWill's Avatar
Computer Specs
Moderator with 96,612 posts.
 
Join Date: Oct 2002
Location: South Eastern PA, USA
Experience: Advanced age & experience
06-Nov-2009, 08:43 PM #2
I suggest a reading of the TSG Rules, we don't assist with illegally downloaded software or P2P usage.

Closed.
Closed Thread Bookmark and Share

Smart Search

Find your solution!



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
WELCOME TO TECH SUPPORT GUY! Are you looking for the solution to your computer problem? Join our site today to ask your question -- for free! Our site is run completely by volunteers who want to help you solve your computer problems. See our Welcome Guide to get started.

Thread Tools


You Are Using:
Server ID
Advertisements do not imply our endorsement of that product or service.
All times are GMT -5. The time now is 03:34 PM.
Copyright © 1996 - 2009 TechGuy, Inc. All rights reserved.
Powered by vBulletin, Copyright © 2000 - 2009, Jelsoft Enterprises Ltd.
Powered by Cermak Technologies, Inc.