Quantcast
Channel: The Bit Cruncher
Viewing all articles
Browse latest Browse all 88

How to rename multiple sub-folders with PowerShell

$
0
0
$folders = gci 'C:\Users\luge\Crypt\HBI\*\*' | % {$_.FullName}
foreach ($folder in $folders)
   {
if ($folder -like '*CSS MPS Reports UK')
{
rename-item -path $Folder -NewName 'MPSREP_UK'
   }
}



Viewing all articles
Browse latest Browse all 88

Trending Articles