rejetto forum

Software => HFS ~ HTTP File Server => Programmers corner => Topic started by: Sega-Zero on June 20, 2010, 12:11:37 PM

Title: any way to control hfs from outside?
Post by: Sega-Zero on June 20, 2010, 12:11:37 PM
Hello. I would like to control hfs from another program. Is it possible?
I need this features:
1. getting available IP address list [i could get it by myself, but why making double queries?]
2. getting/setting IP address
3. getting/setting filelist/download links
4. getting/setting user/password for any file/directory
5. get current download bandwidth for selected file(s)

I could take your sources as the basement for a program i need, but i think it would be unfair and the program is so beatiful and shiny that not using it will be a crime :)
so, is there any way to do it? I'm not talking about COM, maybe scripting or config files?
Thanks in advance, Sega-Zero.
Title: Re: any way to control hfs from outside?
Post by: rejetto on June 22, 2010, 12:11:43 PM
welcome!

there's no COM, but by scripting you can do many things (version 2.3 required).
at the moment there's no way to just tell a running HFS to execute a script.
but you can make an event like

[every 1 second]
{.load|scriptfile.}
{.delete|scriptfile.}



so that you just need to write your script to "scriptfile" to get it executed.

you will find a lousy documentation for the scripting language by menu > help
Title: Re: any way to control hfs from outside?
Post by: Sega-Zero on June 22, 2010, 12:19:28 PM
a there any code snippets how to do that? couldn't find it here  :-[ little bit confused, what should i search for
Title: Re: any way to control hfs from outside?
Post by: rejetto on June 22, 2010, 01:00:36 PM
snippets for what?
you'll find this board plenty of it