The Bit Cruncher
Making sure you'll get your daily bits and bytes
Blog
About
Tuesday, December 16, 2014
How to rename multiple sub-folders with PowerShell
$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'
}
}
1 comment:
Luc Geurts (/Luge)
December 17, 2014 at 10:39 AM
Updated (Syntax Error).
Reply
Delete
Replies
Reply
Add comment
Load more...
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
Updated (Syntax Error).
ReplyDelete