fermm
6/4/2018 - 3:15 PM

How to add Saturn naming

Adds a Saturn property to files that contains directory + basename (no extension). Example with some previous filtering by extension type and name match.

$file = Get-ChildItem .\UFS |
 where {$_.Extension -eq ".ufs"} |
 where {$_.Name -match "Iter3"} |
 ForEach-Object {$_ | Add-Member -type NoteProperty -Name Saturn -Value ($_.DirectoryName + "\" + $_.BaseName) -PassThru}