Quantcast
Channel: Hey, Scripting Guy! Blog
Viewing all articles
Browse latest Browse all 3333

PowerTip: Use PowerShell to Count Photos

$
0
0

Summary: Learn to use Windows PowerShell to count the number of photographs you have on your computer.

Hey, Scripting Guy! Question How can I use Windows PowerShell to count all the photographs I have on a specific drive?

Hey, Scripting Guy! Answer Use the Get-ChildItem cmdlet to find all of the photos, and then pipe the results to the 
          Measure-Object cmdlet. The following command counts the number of .jpg and .crc files on drive E:

Get-ChildItem -Recurse -Include *.jpg, *.cr2 -Path e:\ | Measure-Object


Viewing all articles
Browse latest Browse all 3333

Trending Articles