PDA

View Full Version : [REQ] rar script


offline
11-27-2004, 08:05 AM
Hi Im looking for someone who either can help me or proably do this for me.

On my ioftpd server I got these files that can be compressed in the very small pices of the original size. So im looking for some kind of script who can archive(rar) these files with highest compression on winrar (-m5).
I thought I could do this myself but I run into a block who I cant get thru.

First I did a simple bat file that did following:
@start c:\program\winrar\rar.exe a -m5 filename.rar *.file
This bat file does what Im looking for except that It compress all the .files's. Im looking for a way to only compress a ceartain file, like say for example: mydocument.file. So to execute this bat file doesnt help me.

Is there any easy way to make such script that compresses a whatever file with RAR.exe with a simple cmd from ioftpd, like: site rar mydocument.file
Wich will compress this file -> mydocument.rar

bizniz
11-28-2004, 11:05 AM
put rar.exe in ioftpd system dir (with ioftpd.exe)

then you can just do:

site exec rar.exe -m5 files.rar your.file

or put an itcl on scheduler:


catch {exec -- c:/ioftpd/ioftpd/scripts/rar.exe -m5 filename.rar your.file}


or whatever..