View Single Post
Old 01-03-2012, 02:50 PM  
FTPServerTools
Senior Member
 
Join Date: Sep 2002
Posts: 543
Default

It isnt really difficult. Just write a cmd line script/ You can use loops and if statements and catch errors and all.
I have no idea what jdownloader does but if you can unrar something by hand then it is fairly simple to make a cmd line script for it. I am lazy tho and I use recurse (see my website) which basically recursively can run scripts in a directory.
As lazy as I am I have a c:\run\doall.cmd with the following contents:
In that doall.cmd I call:
Quote:
c:\run\recurse.exe /m:*.zip /c:c:\run\dozip.cmd
c:\run\recurse.exe /m:*.001 /c:c:\run\do001.cmd
c:\run\recurse.exe /m:*.part001.rar /c:c:\run\dopart001.cmd
c:\run\recurse.exe /m:*.part01.rar /c:c:\run\dopart01.cmd
c:\run\recurse.exe /m:*.part1.rar /c:c:\run\dopart1.cmd
c:\run\recurse.exe /m:*.rar /c:c:\run\dorar.cmd
Now the other files are:
dozip:
Quote:
ren "%[FILENAME]" axxy.zip
unzip -o axxy.zip
del axxy.zip
dorar
Quote:
rar x -y -av- -- "%[FILENOEXT].rar"
del "%[FILENOEXT].r??"
dopart1
Quote:
rar x -y -av- -- "%[FILENAME]"
del "*.part?.rar"
dopart01
Quote:
rar x -y -av- -- "%[FILENAME]"
del "*.part??.rar"
dopart001
Quote:
rar x -y -av- -- "%[FILENAME]"
del "*.part???.rar"
do001
Quote:
rar x -y -av- "%[FILENOEXT].001"
del "%[FILENOEXT].0??"
You dont need recurse tho you can just as easily do it in vb or windows shell or jscript or even a .cmd file..
example of a .rar unpack line:
for /f "tokens=*" %G in ('dir /b *.rar) do rar x -y %g
Of course you then have to be carefull when an error occurs but it is simple enough.
FTPServerTools is offline