Unlimited Rendering!
ResPower Super/Farm™

Tutorial - Using WinRAR command-line tools

When you install WinRar, two command-line tools are also installed, rar.exe and unrar.exe. They will be located in C:\Program Files\WinRAR by default.

Here's an example of how to extract the contents of a single rar file:

  1. open a command prompt
    (Windows 2000/xp, choose start->programs->accessories->Command Prompt)
  2. add the winrar tools to the path:
    c:\> set path="C:\Program Files\WinRAR\";%path%
  3. switch to the directory where you want your files to extract to:
    c:\> cd /d z:\some_folder
  4. use unrar to extract the file:
    z:\some_folder> unrar e c:\some_rar_file.rar

You can of course wrap all of this into a batch file that loops through all of the .rar files in a folder. Here's a quicky sample (doesn't handle spaces in .rar file names):

@REM ------- BEGIN demo.cmd ----------------
@setlocal
@echo off
set path="C:\Program Files\WinRAR\";%path%
for /F %%i in ('dir /s/b *.rar') do call :do_extract "%%i"
goto :eof

:do_extract
echo %1
mkdir %~1.extracted
pushd %~1.extracted
unrar e %1
popd

REM ------- END demo.cmd ------------------

For detailed information on windows batch files, please see:


OSX documentation [new]

  1. Open a terminal window.
  2. In the terminal window, navigate to the folder containing your .rar files:
    cd /<path-to-files>
  3. Run the following command:
    for i in *.rar; do unrar e "$i"; done
    Note: "unrar" may need to be replaced with the full path to your unrar executable. For example, if unrar is installed in /usr/local/bin, the command becomes:
    for i in *.rar; do /usr/local/bin/unrar e "$i"; done

    OSX unrar is available from RAR Labs, here
[Blender Enabled] [Brazil r/s Enabled] [RPC Enabled] [V-Ray Enabled] [WavGEN Enabled] Tel: 866-737-7697 256-533-1090
[site map] | [Home - ResPower Render Farm] | [Rendered At ResPower] | [Herbie: Fully Loaded] | [Gridlife] | [Griffon - Busch Gardens] | [Man in Man] | [3ds Max®] | [Blender] | [LightWave®] | [Maya®] | [Vue] | [Contact Info] | [FAQ - General] | [FAQ - Subscriptions] | [Cut Render Times and Costs] | [Split-Frame Rendering] | [Brazil r/s enabled] | [Mac Corner] | [rpc enabled] | [V-Ray enabled] | [WavGEN enabled] | [supports mental ray] | [Multiple Pricing Models] | [Reproducible Filesystem Layout] | [Education Center] | [V-Ray Irradiance Maps] | [Character Rigging - Fat Boss] | [Hair] | [Using LightWave Content Manager] | [Configuring Maya Particles For Use with a Render Farm] | [Using RAR from a command line] | [Privacy Notice]