Zaks.Directory Readme

Zaks.Directory : An ASP Component for getting directory listings / file properties
Version : 1.3
Release Date : 13 December 98
Copyright (c) 1998 by Simon Fell. All rights reserved.
Contact:
email : Simon Fell
WWW : Zaks Solutions Web Site

If you have any problems using this component please report it.

Description
Zaks.Directory allows for directory listings and file properties to be obtained in an easy manner.

Installation Instructions
To use this ASP component move the DLL into a sub directory (like \winnt\system32\inetsrv\asp\Cmpnts or \winnt\system32) and run (from the directory copied to)

regsvr32 ZaksDir.dll
If you are replacing an earlier version, remember to shutdown & restart IIS to reload the new version.

License Agreement
Zaks.Directory is copyright (C) 1998 by Simon Z. Fell

Zaks.Directory is free to download and use. You may NOT redistribute the package through BBS, Internet, FTP sites or by any other means without written permission from the Author.
You are prohibited from:
charging a fee or requesting donations for the package;
modifying the package.

All trademarks/registered names acknowledged.

Zaks.Directory is provided as is, without warranty of any kind.
The author shall not be liable for damages of any kind. Use of this software indicates you agree to this.

How To Use
A set of example ASP scripts are included in the download

Object Properties / Methods
All the code snippets assume that
set zd = Server.CreateObject("Zaks.Directory")
has already been called.
  • Main Object
    • Collection : Dir (Path, [SortOrder, SortDirection]) : this is the default property and returns a collection of File Objects, the path can contain file wildcard. Optionally a SortOrder and SortDirection can be specified. e.g.
      for each F in zd("c:\inetpub\scripts\*.asp", zdSortFileName, zdDescending)
      	response.write F.FileName & "<BR>"
      next
    • Function : Path (Path) : returns the path part of the passed string, e.g.
      Path("c:\inetpub\wwwroot\index.asp")
      returns c:\inetpub\wwwroot

    • Function : File (Path) : returns the filename part of the passed string, e.g.
      File("c:\inetpub\wwwroot\index.asp")
      returns index.asp

  • Collection object
    • Function : Sort ( SortOrder, SortDirection ) : resort the directory list using the specified sort order and direction note that you can only sort on one field, i.e. you can not sort by name then size. e.g.
      set c = zd("c:\*.*")
      c.sort ( zdSortSize, zdAscending )
      for each f in c
      	response.write f.fileName & <BR>
      next
    • Property : Count : returns the number of FileItem objects in the collection

  • FileItem Object
    • FileName (e.g. index.asp)
    • NamePart (e.g. index)
    • ExtPart (e.g. asp)
    • Size
    • CreationTime
    • LastWriteTime
    • LastAccessTime
    • Archive
    • Readonly
    • Hidden
    • Compressed
    • System
    • Temporary
    • Directory

    Last Updated : Saturday, January 02, 1999
    (C) 1997/1998 Simon Fell, All rights reserved