Windows 7 Forums
Welcome to Windows 7 Forums. Our forum is dedicated to helping you find support and solutions for any problems regarding your Windows 7 PC be it Dell, HP, Acer, Asus or a custom build. We also provide an extensive Windows 7 tutorial section that covers a wide range of tips and tricks.


Windows 7: Auto Extract Rar/Zip files

04 Jan 2013   #21

WIN 7 x64
 
 

one question D,Do i have to transfer the completed files everytime to this "TEMP" Folder each time? because that would be another hassle as i have separate folder for each of the shows and each season has folder that consists of all the episodes of current seasons.

if so let me know that i have to move this completed files after dl i rather just hand extract then doing this many more steps...i wanted to set up so it automatically sets up all the files without me having to right click and set up in Vuze or move the files once completed to temp folder and then back... :/

My System SpecsSystem Spec
.

04 Jan 2013   #22

WIN 7 x64
 
 

YES Success...I did steps until 8th and 9th and it made folder inside the downloaded file of .extracted and it made a .mkv file in there yes...but now i must finish rest of tutorial and get back to u...but please do answer the last question i asked you about running the command runner prompt each time i start downloading a file do i need to run that?
My System SpecsSystem Spec
05 Jan 2013   #23

Windows 7 Ultimate x64
 
 

Quote   Quote: Originally Posted by Digital7 View Post
YES Success...I did steps until 8th and 9th and it made folder inside the downloaded file of .extracted and it made a .mkv file in there yes...but now i must finish rest of tutorial and get back to u...
Did you run "Test on-completion command" from in Vuze? If you did then there's no real need to finish the tutorial as steps 11 - 12 are only running the Test from within Vuze and the last 3 images are only showing how they are extracted.

Quote   Quote: Originally Posted by Digital7 View Post
one question D,Do i have to transfer the completed files everytime to this "TEMP" Folder each time?
No, this was only to test that it was working for you the same as it did for me. We only used a temp folder to prevent any corruption to the original files.

After the last image in the tutorial there's a bit of info that explains for new downloads you only need to do steps 5 -8, but I did make an edit to the bat which should allow you to safely set it up for all downloads like your screenshot in Post #12 rather than preforming Steps 5 - 8. Just make sure you get the updated bat or you could end up with lots of files where you don't want them.

Also you can check the box in the first image again if you had it checked originally.
My System SpecsSystem Spec
.


05 Jan 2013   #24

WIN 7 x64
 
 

I want to modify 2 more things into this script...is there anyway to extract the File in same folder as all the rar files insted of making new folder .extracted ?

second question...is there a way to rename the file while it extracts to same as Rar file name...?
My System SpecsSystem Spec
05 Jan 2013   #25

Windows 7 Ultimate x64
 
 

Quote   Quote: Originally Posted by Digital7 View Post
I want to modify 2 more things into this script...is there anyway to extract the File in same folder as all the rar files insted of making new folder .extracted ?
The below bat file will do this but if a RAR file contains a RAR file it will only extract the first RAR(s) and not any RAR's that are extracted from the first, that's beyond me.
Code:
@echo off

REM Usage
REM UnRAR.bat "%D" "%N" "%F" %K

REM %D (%1) = Directory where files are saved
REM %N (%2) = Display name of download
REM %F (%3) = Name of downloaded file (For single file torrents) 
REM %K (%4) = Single/Multi

set WINRAR="C:\Program Files\WinRAR\UnRAR"

REM Strip quotes from %1, %2 and %3 to make it easier.
set FOLDER=%1
set FOLDER=%FOLDER:~1,-1%
set DISNAME=%2
set DISNAME=%DISNAME:~1,-1%
set FILENAME=%3
set FILENAME=%FILENAME:~1,-1%

REM Test if the directory where files are saved contains a RAR file
if not exist "%FOLDER%\*.rar" exit

if /i %4==Multi goto MULTI

REM -------------------------------------------------

:Single
REM Change the CMD prompt to the directory where files are saved.

cd /d "%FOLDER%"

%WINRAR% e -o- "%FOLDER%\%FILENAME%"
exit

REM -------------------------------------------------

:MULTI
REM For multi file torrent
REM Get first RAR's filename
REM Change the CMD prompt to the directory where files are saved.

for  %%a in ("%FOLDER%\*.rar") do (
set "FILE=%%a"
cd /d "%FOLDER%"
goto :DONE
)
:DONE

%WINRAR% e -o- "%FILE%"
Quote   Quote: Originally Posted by Digital7 View Post
second question...is there a way to rename the file while it extracts to same as Rar file name...?
This is more difficult all I can say tonight is maybe. The only problem is if the RAR contains more than one file, eg. a text, checksum or nfo file. If it does you will end up with filename.mkv, filename01.txt filename02.txt etc.... or something like that. If you only want to rename mkv files then that should be ok as there probably won't be more than one.

Let us know and I'll try to take a look tonight if you want.
My System SpecsSystem Spec
05 Jan 2013   #26

WIN 7 x64
 
 

let me rephrase the second question...with some images and make it more interesting


The above picture see how i have refer the pic 1 on left...see how it made .extracted folder? is there a way to not make that folder and just extract the file shown in Pic 2 on left in original downloaded archive folder?
My System SpecsSystem Spec
05 Jan 2013   #27

WIN 7 x64
 
 

and Now second question with pictures

Now for File name question...

See in the image listed as 3 in this post...i have one black ciricle that's the name extracted file gave when it ran the Command runner...but see the Red ciricle in the image i want the extracted file to be name give of Downloded Archive's name insted...so for instance the dl folder has name is "Last.HDTV.x264-LOL" but the extracted file name is given "Last.x264-LOL" for example so i want the folder name to put when file is extracted...

does that makes sense or am i just going in circles
My System SpecsSystem Spec
05 Jan 2013   #28

WIN 7 x64
 
 

One more thing under the plugins - log view dose not have any command runner log at all even though it extracted 2 files!
My System SpecsSystem Spec
06 Jan 2013   #29

Windows 7 Ultimate x64
 
 

The bat file I posted in Post #25 should extact the files to the same folder as the RAR files but the renaming is just being a pain, I don't think I can help with that sorry and I don't know anything about the log view.
My System SpecsSystem Spec
06 Jan 2013   #30

WIN 7 x64
 
 

Quote   Quote: Originally Posted by Duzzy View Post
The bat file I posted in Post #25 should extact the files to the same folder as the RAR files but the renaming is just being a pain, I don't think I can help with that sorry and I don't know anything about the log view.
I tested that file from #25 but it dose not produce anything at all...no folder or anything :/ can u test it and make sure it works please!

...in command runner it made this note "Executing: D:\UnRAR.bat "D:\_Downloads\I.Hate.E08.Teenage.Girlfriends.HDTV.x264-FiHTV""I.Hate.E08.Teenage.Girlfriends.HDTV.x264-FiHTV" "" multi

but it didn't extract anything!

And thanks so far for all the help!
My System SpecsSystem Spec
Reply

 Auto Extract Rar/Zip files




Thread Tools



Similar help and support threads for2: Auto Extract Rar/Zip files
Thread Forum
Extract Files from Windows 7 Installation DVD Tutorials
How do i extract my product key from windows.old files Windows Updates & Activation
How to extract files from MIG Installation & Setup
how to extract files from .msi package? BSOD Help and Support
Extract .iso files? Software
No extract option for zip files General Discussion
Can't extract any files General Discussion

Our Sites

Site Links

About Us

Find Us

Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

Designer Media Ltd

All times are GMT -5. The time now is 09:18 PM.
Twitter Facebook Google+



Windows 7 Forums

Seven Forums Android App Seven Forums IOS App
  

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33