Custom Tags
web_chkMail
web_Image
web_QueryIpHost
web_Print
web_Pager
webReport
webObject
webPGP
web_ListDir
E-Commerce Tags
web_LinkPoint
web_ICVerify
web_Cybercash
web_DirectCredit
ODBC Tags
web_ODBCDrivers
web_ODBCDsns
web_DsnAttrs
web_ConfigDsn

web_ListDir

Custom tag <web_ListDir ...> can be used to list all the files and
directories under certain directory.

Syntax:
  <web_ListDir Name=... Dir="Physical-Directory" [Pattern=...]>

The result of all the files and directory listed out will be saved into
the query object named by "Name=...".

For example:

<web_ListDir Name="List2" Dir="C:\winnt" Pattern="*.ini">
<webPrint Query="List2">
#FileOrDir#<BR>
</webPrint>

To determine if it is a file or a directory (#FIleOrDir#), you can check the last character of #FileOrDir#. If it is "\", it is a directory, or it is a file.

This function does not list those hidden files, and does not work on Unix.

 

Copyright © 2009 Webplus, Inc. (talentsoft). All Rights Reserved.
webmaster@webplus.com