Quantcast
Channel: PowerShell.com – PowerShell Scripts, Tips, Forums, and Resources
Viewing all articles
Browse latest Browse all 6937

Use PowerShell to Find Folders with Specific File Types

$
0
0

In a recent article I showed you how to identify empty folders with PowerShell and delete them. On a related note I saw a post on Twitter with a Reddit question about getting a list of folder names that contain a certain file type. Interesting. Say I have a folder structure and I want to show the folder names if the folder contains say an MP3 file. Let’s do this thing with PowerShell. First, I’ll define a variable for the file type.

Read More


Viewing all articles
Browse latest Browse all 6937

Trending Articles