> Does anyone know the command for finding out the total number of a directory ? Thanks.
ADir() will work but Ed's enthusiasm has infected most of us. You could use the Scripting.FileSystemObject.
oFS = createobject("scripting.FileSystemObject")
oFolder = oFS.GetFolder("\")
return oFolder.Files.Count+oFolder.SubFolders.Count
This will return the number of files and subdirectories in the specified directory.
Larry Miller
MCSD
LWMiller3@verizon.netAccumulate learning by study, understand what you learn by questioning. -- Mingjiao