1
Situation:
In Powershell, I'm using:
$folders = dir -s C:\Users\Name\Downloads\*.ttf | Select Directory
foreach ($folder in $folders)
{
echo $folder
}
To display folders whose contents contain certain file extentions (in this instance .ttf files).
Because the folders have more than one file of type .ttf, duplicates appear in the final list. This is not useful for me because I'd like to move the directories listed to somewhere else.
My Question:
How can I remove these duplicates from the echoed list?