PowerShell: Count Number of Files

By Xah Lee. Date: .

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 -include *.html  | measure

PowerShell, List Dirs and Files

List Dirs

List Files

Create, Copy, Delete, Dir

Path Tutorial