Go Back   FlashFXP Forums > ioFTPD Forum > ioFTPD > Scripting > ! Requests

! Requests Need a script or some sort of cool .bat file ? Ask here!

Reply
 
Thread Tools Rate Thread
Old 11-27-2004, 07:05 AM   #1
Junior Member
 
Join Date: Oct 2004
Posts: 7
Default [REQ] rar script

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:
Code:
@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
offline is offline   Reply With Quote
Old 11-28-2004, 10:05 AM   #2
Banned
 
Join Date: Feb 2004
Posts: 20
Default

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:

Code:
catch {exec -- c:/ioftpd/ioftpd/scripts/rar.exe -m5 filename.rar your.file}
or whatever..
bizniz is offline   Reply With Quote
Reply
Create a free account to browse our forums without ads



Thread Tools
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
Trackbacks are Off
Pingbacks are Off
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Download grinding to a halt bruceh General Discussions 6 09-07-2004 08:29 AM


All times are GMT -5. The time now is 09:47 AM.