The Multifunctioning DBA:

One Liners


August 18, 2009  5:47 PM

Find how many files of any extension are in a folder

Posted by: Colin Smith
One Liners, Powershell, Powershell Tips, Scripting, System Administration

Recently I needed to find out if I had any files of a certain extension in a particular folder and if so how many. With Powershell this is no problem at all. Say I was looking for a count of .ps1 files in the directory.


Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to: