Go Back   FlashFXP Forums > > > >

! Other Scripts Support Support for all other scripts...

Reply
 
Thread Tools Rate Thread Display Modes
Old 10-18-2003, 01:06 PM   #1
donate
Junior Member
 
Join Date: Sep 2003
Posts: 26
Question RAR - UNRAR Question (And solution)

ioftpd.ini:
unrar = EXEC ..\iozs\UnRAR.exe e
rar = EXEC ..\iozs\RAR.exe a

usage now:
site unrar $current_path\packed.rar $current_path\
site rar -m0 -v15000 -vn $current_path\pack.rar $current_path\source.file

( $current_path = Full Windows Path C:\ioftpd\.... )

THIS WORKS ^



But i want:

unrar = EXEC ..\iozs\UnRAR.exe e $file $destination
so:
site unrar packed.rar (this would extract in same dir as packed.rar)
or:
site unrar packed.rar /testdir/extract/here



rar = EXEC ..\iozs\RAR.exe a $m $v -vn $destination $source
(vn = old volume style)

so:
site rar 0 15000 pack.rar source.file


Anyone has any idea how this can be done?
With ioFTPD..... if not, WarC?



Thanks in advance
donate is offline   Reply With Quote
Old 10-18-2003, 01:14 PM   #2
kraxdaz
Member
ioFTPD Foundation User
 
Join Date: Jun 2003
Posts: 86
Default

maybe u can use the FlashFXP variables:

%f Selected Filename
%p Current Path
kraxdaz is offline   Reply With Quote
Old 10-18-2003, 01:26 PM   #3
donate
Junior Member
 
Join Date: Sep 2003
Posts: 26
Default

Quote:
Originally posted by kraxdaz
maybe u can use the FlashFXP variables:

%f Selected Filename
%p Current Path
unrar = EXEC ..\iozs\UnRAR.exe e %f %p

[R] site unrar test.001
[R] 200-
[R] 200-UNRAR 3.20 freeware Copyright (c) 1993-2003 Eugene Roshal
[R] 200-
[R] 200-Cannot open %f.rar
[R] 200-The system cannot find the file specified.
[R] 200-No files to extract
[R] 200 Command Successful.

I think not, or i have no idea how to use variables in ioftpd(.ini)
donate is offline   Reply With Quote
Old 10-18-2003, 04:36 PM   #4
darkone
Disabled
FlashFXP Registered User
ioFTPD Administrator
 
darkone's Avatar
 
Join Date: Dec 2001
Posts: 2,230
Default

Create a .bat file that executes unrar/rar:

rar.bat:

@echo off
c:\whatever\rar.exe -m0 -vn15000 %path%\%1 %path%\%2
echo !detach 0

RAR = EXEC ..\scripts\rar.bat

To archive contents of current directory: SITE RAR myrar.rar .
To archive directory/file within current directory: SITE RAR myrar.rar <file/directory>

unrar.bat:

@echo off
echo !buffer off
c:\whatever\unrar.exe %path%\%1 %path%

UNRAR = EXEC ..\scripts\unrar.bat

To unrar contents of .rar file to current directory: SITE UNRAR myrar.rar

... Didn't test it, but something like that should work
darkone is offline   Reply With Quote
Old 10-18-2003, 05:13 PM   #5
donate
Junior Member
 
Join Date: Sep 2003
Posts: 26
Default

Thats exactly what i dreamed of!! Thanks

ioftpd.ini:
unrar = EXEC ..\scripts\UnRAR.bat
rar = EXEC ..\scripts\RAR.bat

unrar.bat:
@echo off
echo !buffer off

RAR.exe e -y %path%\%1 %path%

rar.bat:
@echo off
echo !buffer off

set compression=-m%1
set size=-v%2000

RAR.exe a -y -ep1 -vn -x.* %compression% %size% %path%\%3 %path%\%4

copy rar.exe in ioftpd\system dir
( get rar.exe from C:\Program Files\WinRAR\ or similar )



site rar 0 15 pack.rar
site rar 0 15 pack.rar file/dir only
site unrar packed.rar

site rar:
0 = compression (0=store 1=fastest 2=fast 3=normal 4=good 5=best)
15 = spanning size (15 = 15,000,000)
pack.rar = create pack.rar in current directory
pack.rar file/dir only = create pack.rar in current directory, chosen file or directory only

site unrar:
packed.rar = extract rar to current directory

Thats what i am using now.




Thanks darkone and everyone who helped me in IRC.

Very handy for you packing people :banana:


Edit:
P.S.
-ep1 = Do not include Parent directories in rar

-vn = Old Volume Style Rarring
test.rar test.001
Not new style; test.part1.rar test.part2.rar crap

-x.* = exclude all hidden files .ioFTPD .race .etc..


Changed
echo !detach 0 to echo !buffer off
It shows real time how the procces is going, i like that.

RAR.exe is Only needed, it can unrar too.

THNX!
donate is offline   Reply With Quote
Old 01-05-2004, 05:13 AM   #6
NorLan
Senior Member
 
Join Date: Sep 2003
Posts: 110
Default

nice tool

perhaps some addon to this:
@echo off
md %path%\Extracted
start D:\ioFTPD\scripts\HideRun.exe D:\ioFTPD\scripts\unrar.exe x -y %path%\%1% %path%\Extracted
NorLan is offline   Reply With Quote
Old 01-05-2004, 05:22 AM   #7
SomeoneWhoCares_2
Member
 
Join Date: Sep 2002
Posts: 87
Default

its hidden anyways when run through io so whats the point ??
SomeoneWhoCares_2 is offline   Reply With Quote
Old 01-05-2004, 05:42 AM   #8
NorLan
Senior Member
 
Join Date: Sep 2003
Posts: 110
Default

changed the message above...

it works i've forgotten the start at the beginnning
(those who know similar to ioBanana)

do it that way and you can work with flashfxp during the rar is running
NorLan is offline   Reply With Quote
Old 01-05-2004, 06:01 AM   #9
NorLan
Senior Member
 
Join Date: Sep 2003
Posts: 110
Default

hmm another problem:

i have a release with subdirectories eg:
/release/
/release/cd1
/release/cd2

i want to extract it to a directory named d:\extracted
but there i want to have a structure like this:
d:\extracted\release\
d:\extracted\release\cd1
d:\extracted\release\cd2

how could i manage this?!
NorLan is offline   Reply With Quote
Old 01-05-2004, 01:29 PM   #10
SomeoneWhoCares_2
Member
 
Join Date: Sep 2002
Posts: 87
Default

in unrar.bat change
RAR.exe e -y %path%\%1 %path%
to
RAR.exe x -y %path%\%1 %path%
DONE!
SomeoneWhoCares_2 is offline   Reply With Quote
Reply

Tags
exec, packed.rar, rar, site, 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 Off
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
another XP SP2 issue MxxCon General Discussion 2 08-19-2004 09:27 AM
Ctrl + no longer works in 3.0 Keymaster General Discussion 8 08-16-2004 12:01 AM


All times are GMT -5. The time now is 12:22 AM.

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