View Single Post
Old 10-18-2003, 04:36 PM  
darkone
Disabled
 
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