-
Vuze Auto-Unrar
Hi,
I was wondering if anyone is using the CommandRunner-Plugin for Auto-Extracting RAR-Files.
If so, I would like to know a proper CommandLine-Script for doing such a 'unraring' in a proper way.
Would be nice to see single/multiple archives being auto-unrared.
There is a script.bat needed.
I wasn't able to figure out how to do that exactly.
However, helpful advices/how-to's appreciated. :smile:
I thought that such a feature would be nice, after using the
JDownloader-Feature (Built-In).
~td1
-
Try this CMD file:
Code:
@REM ------- BEGIN demo.cmd ----------------
@setlocal
@echo off
set path="%programfiles%\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 ------------------
-
where do I have to place this code ?
I guess in a script.bat, but how can I point commandrunner to this file?
-
Save it wherever you want. For this example I'll make that D:\unrar.cmd. Then tell the Command Runner plugin to run the following program.
Code:
D:\unrar.cmd "%D\%F"