Go Back   FlashFXP Forums > >

General Discussion Need help? Have a problem? Let us help you. Bug reports and feature requests should be made using the Bug Tracker or Feature Tracker

Closed Thread
 
Thread Tools Rate Thread Display Modes
Old 01-02-2012, 05:42 AM   #1
conan
Junior Member
FlashFXP Registered User
 
Join Date: Jul 2005
Posts: 2
Default Auto unrar files...

Hi!! First happy new year!
I wonder if there is anyway of aouto unrar files as Jdownloader do. I mean, I download a huge amount of rars a day in their own folder and haver to unrar them one by one to meke it in his own folder.
Is there any way of do it as the Jdownloader does?
Thanks.
conan is offline  
Old 01-03-2012, 02:50 PM   #2
FTPServerTools
Senior Member
FlashFXP Beta Tester
ioFTPD Scripter
 
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  
Old 01-04-2012, 03:19 AM   #3
conan
Junior Member
FlashFXP Registered User
 
Join Date: Jul 2005
Posts: 2
Default

Thank you very much I'l try it!
conan is offline  
Closed Thread

Tags
download, files, folder, jdownloader, unrar

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -5. The time now is 03:35 PM.

Parts of this site powered by vBulletin Mods & Addons from DragonByte Technologies Ltd. (Details)