mpfserver Manual
 
 
 Examples | create/read tar-archives
list content of tar-archive
{mpf:tar=list||archive=E:/test.tar}
{mpf:loop={mpf:tar/count}}
... {mpf:tar/name/{mpf:var/key}} ...
... {mpf:tar/size/{mpf:var/key}} ...
... {mpf:tar/compressed/{mpf:var/key}} ...
{/mpf:loop={mpf:tar/count}}
unpack a complete tar-archive
{mpf:tar=unpack||archive=E:/test.tar||saveas=E:/test/}
extract content of a specific file from tar-archive
extract to display:
{mpf:tar=E:/test.tar||file=test.txt}
extract and save as file:
{mpf:tar=E:/test.tar||file=test.txt||saveas=D:/test.txt}
extract file from archive-string (for use with closing token only):
{mpf:tar=E:/test.tar||file=test.txt}
... tar archive binary code ...
{/mpf:tar=E:/test.tar||file=test.txt}
create a tar-archive
create to send (attachment headers must be set):
{mpf:tar=create||file=E:/german.xml||file=E:/hinweis.txt}
create and save as file:
{mpf:tar=create||file=E:/german.xml||file=E:/hinweis.txt||saveas=D:/test.tar}
if you want file paths not to be included in archive:
{mpf:tar=create||file=E:/german.xml||nopath}
 
 
2004 by master-p-formance.All rights reserved.
 
This manual is generated on the fly using mpfserver and MPFT (mpf transformation).