Macro Scheduler 15


Returns the number of directories matching file_spec in the result variable.


file_spec could be a directory path e.g. c:\temp\


To recurse sub directories set subdir_flag to 1.


Abbreviation : Co2

See Also: CountFiles




CountDirs>c:\my documents\,DirCount,0

Message>Number of folders : %DirCount%



The following example will count all the folders anywhere on the c: drive - be warned - this can take a long time:



Message>Total Number Of Dirs On PC : %TotalFolders%