I have 3600 files named PKA.dump

One of these files is not the right size. They should be above 500bytes, but one is below 500. Is there a way to check all subsubfolders and find the one file named PKA.dump that is less than 500 bytes?

Sorry I meant to add I am using powershell.

I had it working in linux, but powershell is so new to me

  • Does it have to be done via PowerShell? Also, which version of Windows? – Karan May 18 '15 at 19:17
  • Powershell or CMD with windows 8 – Jackson Hart May 18 '15 at 19:21

This would do it:

Get-ChildItem C:\PATH\TO\Folder\pka.dump -recurse | Where-Object{$_.Length -lt 500}

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.