Welcome guest. Before posting on our computer help forum, you must register. Click here it's easy and free.

Author Topic: Unrar batch file  (Read 4044 times)

0 Members and 1 Guest are viewing this topic.

Dezent

    Topic Starter


    Newbie

    Unrar batch file
    « on: October 03, 2009, 02:42:18 PM »
    Hi!

    I'm new to this forum so I hope I'm posting at the right place :)


    I would like some help with creating a .bat file. I unpack a lot of tv series and other stuff, and I do this with the Command Prompt. Now I got an idea that I can have a script that will help me do this faster :)


    I'll do this step by step.

    First when I open the cmd i have to write my winrar installation path (set path="C:\Program Files (x86)\WinRAR\";%path%)

    Then I have to change the directory to where I want the files to extract to.
    For example

    cd /d D:\Test\Test1


    Then I have to write unrar e "D:\files\tvseries\*" -r *.avi


    I was wondering if anyone of you guys know if I can get a script to do it in the following way.

    set path="C:\Program Files (x86)\WinRAR\";%path% (inserted auto when I open the .bat file)

    Then I get a message saying "Enter Location:"

    And I only have to write D:\Test\Test1 instead of cd /d D:\Test\Test1

    Then a message saying "Enter folder"

    And I only need to write D:\files\tvseries instead of unrar e "D:\files\tvseries\*" -r *.avi


    Thanks in advance
    Dezent

    Dezent

      Topic Starter


      Newbie

      Re: Unrar batch file
      « Reply #1 on: October 04, 2009, 01:33:39 PM »
      anyone?