rejetto forum

HFS beta 277: always show disk space

0 Members and 1 Guest are viewing this topic.

Offline draconas

  • Occasional poster
  • *
    • Posts: 2
    • View Profile
Is there something that I can add to the root folder so it'll show the remaining/total disk space of the hard drive on the website?


Offline Mars

  • Operator
  • Tireless poster
  • *****
    • Posts: 2055
    • View Profile
yes possible with hfs ver 2.3
you can insert the macro in your template:

{.disk free | A .}

returns available disk space for specified "A" path in bytes.

 For example, to display available disk space for drive C:\ in Gigabytes use :
{.round|{.div| {.disk free|C:\.} | 1073741824.}|2.}

avalaible HFS scripting commands
 here: http://www.rejetto.com/wiki/index.php/HFS:_scripting_commands