Auto Extract Rar/Zip files

Page 3 of 4 FirstFirst 1234 LastLast

  1. Posts : 86
    WIN 7 x64
    Thread Starter
       #21

    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 Computer


  2. Posts : 86
    WIN 7 x64
    Thread Starter
       #22

    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 Computer


  3. Posts : 640
    Windows 7 Ultimate x64
       #23

    Digital7 said:
    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.

    Digital7 said:
    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 Computer


  4. Posts : 86
    WIN 7 x64
    Thread Starter
       #24

    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 Computer


  5. Posts : 640
    Windows 7 Ultimate x64
       #25

    Digital7 said:
    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%"
    Digital7 said:
    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.
    Last edited by Duzzy; 08 Jan 2013 at 02:25.
      My Computer


  6. Posts : 86
    WIN 7 x64
    Thread Starter
       #26

    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 Computer


  7. Posts : 86
    WIN 7 x64
    Thread Starter
       #27

    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 Computer


  8. Posts : 86
    WIN 7 x64
    Thread Starter
       #28

    One more thing under the plugins - log view dose not have any command runner log at all even though it extracted 2 files!
      My Computer


  9. Posts : 640
    Windows 7 Ultimate x64
       #29

    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 Computer


  10. Posts : 86
    WIN 7 x64
    Thread Starter
       #30

    Duzzy said:
    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 Computer


 
Page 3 of 4 FirstFirst 1234 LastLast

  Related Discussions
Our Sites
Site Links
About 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 04:03.
Find Us