mpfserver Manual
 
 
 Examples | file attributes
acessing file-/folder-attributes
you may use this token to display one (use as single token) or more (use with closing token) file attributes, if file does exist.
use as single token
token will return file name/path if file does exist by default. you must define "attrib=[myattrib]"-parameter if you want to display another file attribute.
{mpf:file=D:/test.rtf||attrib=[myattrib]}
use with closing token
if this token is used as a pair then you may access one or more file attributes within section using the following token-structure:
{mpf:file/[myattrib]}
display file name if it does exist (use as single token)
{mpf:file=myfilepath}
display several file attributes (use with closing token)
{mpf:file=myfilepath}
... {mpf:file/name} ...
... {mpf:file/size} KB ...
... {mpf:file/modified} ...
{/mpf:file=myfilepath}
store file name in myVar (use as embedded token)
{mpf:set=myVar||{mpf:file=myfilepath}}
delete existing file
{mpf:file=D:/test.rtf||delete}
 
 
2004 by master-p-formance.All rights reserved.
 
This manual is generated on the fly using mpfserver and MPFT (mpf transformation).