rejetto forum

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Messages - Caco

Pages: 1 2 3 ... 8
RAWR-Designs / Re: Reloaded Page = messed up page
« on: September 24, 2009, 11:44:57 AM »
Aw shit, i didn't understand  :)  However, disabling "compressed browsing" didn't work for me.

RAWR-Designs / Re: Reloaded Page = messed up page
« on: September 21, 2009, 01:04:04 PM »
Sorry, didn't find options for "compressed browsing" in FF and IE. I don't have this issue if i use Opera browser (9.x and 10)

HFS ~ HTTP File Server / Re: themes/images not loading
« on: September 14, 2009, 09:38:15 AM »
Hi Flippy,

do you have this kind of problem or is it different?

HFS ~ HTTP File Server / Re: How to use a macro ??
« on: September 10, 2009, 12:12:22 PM »
Read also the related topic to get more info  ;)

HFS ~ HTTP File Server / Re: How to use a macro ??
« on: September 10, 2009, 12:02:57 PM »
"default template" is included in HFS.exe so you can't edit it. Neither you can use HFS events. You have to install a template.

Whit this:;topic=7273.0;attach=4329

i know how to do it  ;D

HFS ~ HTTP File Server / Re: How to use a macro ??
« on: September 10, 2009, 09:50:39 AM »
Hi HFS-lover,

first of all you need to use a template. Install a template you like in your HFS, eg. RAWR template. The template is a text file that contains all the code to manage HFS web interface. Is in text format, you can modify the macros there if you understand the code behind.

If you don't want to modify the template you can use HFS events. Create a text file, name it and put it into HFS root directory.

Every time HFS will run a specified macro, it will check in that file for a related action.

Here's an example:

[+file deleted]

So each time HFS deletes a file, after that ([+file deleted]), it invokes macro {.delete.} which deletes the file named crap.txt in the root directory of HFS.

For complete list of events, see HFS wiki.

Well, in the machine where HFS runs you can right click the recycle bin and select "Delete Files Immediately - Do Not Move Them to the Recycle Bin". However ALL files you move to the recycle bin will be deleted immediately, not only those remotely deleted via HFS.

in your template


Didn' touch anything in template. Rename function by French can can is working, so i leave it untouched.

[on macro rename]

when  hfs find a macro rename, if the action rename is done, the he call the event [on macro rename] where
 %old-name% is replaced by %item-resource% and %new-name% by new-name.ext

Uhm, but in this case the correct string would be:


In addition, don't forget that rename action must be done from oldname.ext.flv to newname.ext.flv  ;D

Beta / Re: Testing build #244
« on: September 01, 2009, 02:29:07 PM »
One minor bug.

Remember the "persistent menu" bug i noticed sometime ago? Is the same for the "connection menu". You know that when HFS manages a new transfer it opens up a new tray icon for that connection. If you right click on it, a menu appears with options to kick, ban etc. If you decide to take no action and click on your desktop to make the menu disappear, it won't disappear.

Cannot get it to work.

Tried this without success:


Does .filepath store the drive letter also?

you have to  use %item-folder%[preview]/%item-name%

mmmm, i'm not sure. Once event is invoked, %item-name% already contains the new name, but i need the old name. But %old-name% contains the entire path. So i solved in that other way.  ;D

Well, take for instance my case: i use HFS as a server for large video file. Anytime a new file is added, a light flash video preview is created. Without this event, it would be complex to implement autorenaming of previews (eg. you will need another software, like a folder watchdog).

Remote renaming of a file can be considered an administrative-level action, so another use of this event can be to notify in some way the admin that that kind of action has been performed,and by who.  

mars is right. why don't you use {.rename.} ?

Well, you know my tree structure is made so each folder has its [previews] subfolder. %old-name% and %new-name% store the entire path of the file renamed, so i needed to insert \[previews]\ between the path and the file name, eg:

%old-name% is D:\archive\video\video1.avi

but i need D:\archive\video\[previews]\  and , in that folder, video1.avi.flv.

So i think if i used macro .rename , i had to concatenate it with another macro (maybe .substring?) to get the goal.

+ new symbols %old-name% and %new-name% for event [on macro rename]

Thank you very much for this Rejetto.  ;)

Finally i accomplished my goal by invoking an external batch script.
Code: [Select]

[+on macro rename]
{.exec|cmd.exe /K rename_preview.cmd "%old-name%" "%new-name%".}

Batch script:

Code: [Select]

@echo off

set oldname=%~nx1.flv

set newname=%~nx2.flv


cd %~p1

cd [previews]

ren "%oldname%" "%newname%"

I reported here cause it may help other users with similar needs as mine.

Beta / Re: Testing build #243
« on: August 28, 2009, 01:04:36 PM »
I imagined that. Then i need to pass old name to a batch file, but i don't know how to do it  ;D

Pages: 1 2 3 ... 8