Home
Link To Us
Components
Resources










Site Menu

An Overview in Creating an ActiveX DLL for Use with ASP Scripts

Other Resources and Materials on ActiveX COM Objects

FindFilePro - The Complete ActiveX COM Object Suite

cover
A good reference guide to ASP and COM Objects.











Find File

FindFile.dll This COM Object was developed to efficiently and quickly find the oldest or most recent file created/modified in a directory.

Findfile.zip FindFile.dll source code

PropertyDescriptionRequiredExampleValues
directorynameSets the directory in which you want to search for the most recent fileYesfilenamefind.findlastfile.directoryname="c:\"Any String
searchsubdirectoriesSets whether you want to search only the subdirectories (2), the main directory and the subdirectories (1), or only the main directory (0).Nofilenamefind.findlastfile.searchsubdirectories=00,1,2
datefilecreatedReturns the creation date and time of the file in the search.Nolastdatecreated=filenamefind.findlastfile.datefilecreatedA Date/Time Value
datefilemodifiedReturns the modification date and time of the file in the search.Nolastdatecreated=filenamefind.findlastfile.datefilecreatedA Date/Time Value
MethodDescriptionRequiredExampleValues
findlastfileReturns the path and name of the last file that was created in the directory specified.Nolastfile=filenamefind.findlastfileA String Value
findfirstfileReturns the path and name of the first file that was created in the directory specified.Nofirstfile=filenamefind.findfirstfileA String Value
findlastfilemodifiedReturns the path and name of the last file that was modified in the directory specified.Nolastfile=filenamefind.findlastfilemodifiedA String Value
findfirstfilemodifiedReturns the path and name of the first file that was modified in the directory specified.Nofirstfile=filenamefind.findfirstfilemodifiedA String Value

    Usage to display the last file created the root directory on a machine:

Set filenamefind=Server.CreateObject("filenamefind.findfile")
filenamefind.searchsubdirectories=0
filenamefind.directoryname="c:\"
finalanswer=filenamefind.findlastfile
response.write finalanswer

    Usage to display the first file modified and its creation date/time in the c:\test directory on a machine:

Set filenamefind=Server.CreateObject("filenamefind.findfile")
filenamefind.searchsubdirectories=0
filenamefind.directoryname="c:\test"
finalanswer=filenamefind.findfirstfilemodified
response.write finalanswer
response.write filenamefind.datefilecreated

The Bookworm
Search the Tutorial-Web library for books on any topic!
Sponsors

Search Now:
In Association with Amazon.com

Enter your email address to join our mailing list!
We will NOT sell your name to advertisers

cover
A Recommended Visual Basic Reference