Mukesh the geek
Saturday, January 25, 2014
Count number of folders/files in a directory
The "dir" command is used for listing the content of a directory in Windows.
To count number of folders in a directory -
dir /b/ad | find /v /c "::"
To count only files in a directory (excludes folders) -
dir /b/a-d | find /v /c "::"
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment