View Single Post
Old 29-10-2019, 22:06   #4
idi banashapan
step on my trip
 
idi banashapan's Avatar
 
Join Date: Jul 2003
Posts: 3,715
idi banashapan has a nice shiny star
idi banashapan has a nice shiny staridi banashapan has a nice shiny staridi banashapan has a nice shiny staridi banashapan has a nice shiny staridi banashapan has a nice shiny staridi banashapan has a nice shiny staridi banashapan has a nice shiny staridi banashapan has a nice shiny staridi banashapan has a nice shiny staridi banashapan has a nice shiny star
Re: How Many Files and Folders on my PC ?

Quicker way;

Open Powershell

- to count only files (remember to change C:\ to the path you want or keep as C:\ to count everything on that drive)
Get-ChildItem C:\ -Recurse -File | Measure-Object | %{$_.Count}

- to count only folders (again, change C:\)
Get-ChildItem C:\ -Recurse -Directory | Measure-Object | %{$_.Count}

- to count both files and folders (change C:\ if you want to)
Get-ChildItem C:\ -Recurse | Measure-Object | %{$_.Count}

I'm glad you're learning - don't worry about whether or not others think it's useful. Whatever you learn in computing can give you a better understanding of how something else works. You found a new menu, a new way of doing something, a new function you didn't know existed - whatever it is, it's new to you and that's great!
__________________
If one does not understand a person, one tends to regard him as a fool

Last edited by idi banashapan; 29-10-2019 at 22:10.
idi banashapan is offline   Reply With Quote