rejetto forum

getting %number-files% from a spec folder ?

Guest · 6 · 7624

0 Members and 1 Guest are viewing this topic.

ebola

  • Guest
Hi

I have created a section called [generalinfo]. Here I can use symbols that are available in all sections. This is fine & working.

But now i want to include there (in section [generalinfo]) the symbol %number-files% from a special folder o HD. How is this done?


Cheers,
ebola


Offline Foggy

  • Tireless poster
  • ****
    • Posts: 806
    • View Profile

Offline rejetto

  • Administrator
  • Tireless poster
  • *****
    • Posts: 13523
    • View Profile
you get that symbol only when that folder is browsed.
but in the future, if an {.exec.} macro will be created, there will be a way.


ebola

  • Guest
Hi

Thx for your answer, rejetto :)

@Foggy :
This is for a project where HFS is used as a webserver displaying static websites - but some sites including additional, variable informations. Sure, PHP would be possible but I like bulletproof HFS with non-script-support for "exposed" things :)


Cheers,
ebola


Offline rejetto

  • Administrator
  • Tireless poster
  • *****
    • Posts: 13523
    • View Profile
had an idea.

if you make an external program/script that writes the information you need in a text file, then you can load it in HFS with {.load|that file with the info.txt.}


ebola

  • Guest
Hi

Yeah.
I already do this with various stuff. For example there is a dummy-html that is edited (filled with systeminfos like Systemuptime, free RAM, ...) by a external program. HFS copy's and fill's it with other things that are possible with macros + displays it after all.


Cheers,
ebola