Count files in the folder

Hello,
Maybe somebody know PowerShell code how count files in the folder, which file size is biggest than 200 kb?

Sarunas,
Welcome to the forum. :wave:t4:

What you’re asking for is one of the most basic tasks you could do with PowerShell. It would have taken you seconds to find examples for a task like this. Please before you come here to ask for help spend a minimum amount of effort to try to get your task done by yourself in the first place. If you get stuck on your way and you have code that does not what you want or throws errors and you cannot figure out why or don’t know how to step further you’re very welcome here to share what you’ve done already along with an explanation what’s not working and we will be happy to assist you.

I tried google, but all example count files in the folder or how many size take all file in the folder.

It is pretty unlikely that you find an example what fits your requirement 100%. So you have to tweak one of the examples you’ve found to meet your expectations.

This forum is a peer to peer forum where we help each other with our self written code. It is not the place to ask someone to do it for you. :wink:

I find how to write code
Get-ChildItem -Recurse -File| Where-Object {$.Length -gt 200000}| Measure-Object | %{$.Count}
thank

Great. :+1:t4:

Please … when you post code, sample data, console output or error messages format it as code using the preformatted text button ( </> ). Simply place your cursor on an empty line, click the button and paste your code.

Thanks in advance

How to format code in PowerShell.org <---- Click :point_up_2:t4: :wink: