/// <summary> /// Loop Through File Pattern/Folder, Return Number of Directories Found /// </summary> /// <param name="Directory">Path to Folder to Search For FileCount</param> /// <param name="SearchPattern">File Pattern to Match For FileCount, Default = *.*</param> /// <param name="Recurse">Option to Include Subdirectories. Default = true</param> /// <returns></returns> public static int DirCount(this string Directory, string SearchPattern = "*.*", bool Recurse = true) { _AHK ahk = new _AHK(); return(ahk.DirCount(Directory, SearchPattern, Recurse)); }