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
1
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.

2
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)

3
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?

http://www.rejetto.com/forum/index.php?topic=7310.0

4
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  ;)

http://www.rejetto.com/forum/index.php?topic=7273.0

5
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:

http://www.rejetto.com/forum/index.php?action=dlattach;topic=7273.0;attach=4329

i know how to do it  ;D

6
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 hfs.events 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]
{.delete|crap.txt.}

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.

7
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.

8
Quote
in your template

{.rename|%item-resource%|new-name.ext.}

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

Quote
[on macro rename]
{.rename|{.filepath|%old-name%.}[previews]\{.filename|%old-name%.}|%new-name%.}

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:

{.rename|{.filepath|%item-resource%.}[previews]\{.filename|%item-resource%.}|%new-name%.}

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



9
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.

10
Cannot get it to work.

Tried this without success:

{.rename|"{.filepath|%old-name%.}[previews]\{.filename|%old-name%.}.flv"|"{.filename|%new-name%.}.flv".}

Does .filepath store the drive letter also?


11
Quote
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

12
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.  

13
Quote
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.

14
Quote
+ 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.

hfs.events:
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

%~d1

cd %~p1

cd [previews]

ren "%oldname%" "%newname%"

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

15
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