PowerShell: count files

By Xah Lee. Date: . Last updated: .

Count Number of Files

# count number of files in current dir and subdirs
dir -file -recurse | measure
# count number of html files in current dir and subdirs
dir -recurse -filter *.html  | measure