Windows command prompt: how to get the count of all files in current directory?

Posted by pcampbell on Server Fault See other posts from Server Fault or by pcampbell
Published on 2010-02-08T17:12:40Z Indexed on 2010/04/07 2:43 UTC
Read the original article Hit count: 319

Filed under:
|
|
|
|

What command would you use in cmd.exe to find the number of files in the current directory?

Is there a powershell option here?

Update: I was hoping to avoid dir, as I know there are 10,000+ files in the current directory. Wanted to avoid the enumeration output to the cmd window. Thank you!

© Server Fault or respective owner

Related posts about dos

Related posts about directory