View Single Post
Old 10-18-2003, 05:13 PM  
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