Only Folders

$items = get-childitem \\n013\group\Public\InfoCentre\Data -Recurse | Where-Object {$_.PSIsContainer -eq 1} |  sort fullname -descending
foreach ($item in $items)
{
   if ($item.name -eq $item.name.ToLower())
   {    
       $temp = $item.FullName.ToLower() + "_"
       $name = $item.FullName.ToLower()
       ren $name $temp
       ren $temp $name
   }
}


Both Files and Folders

$items = get-childitem \\n013\group\Public\InfoCentre\Data -Recurse
foreach ($item in $items)
{
   if ($item.name -eq $item.name.ToLower())
   {    
       $temp = $item.FullName.ToLower() + "_"
       $name = $item.FullName.ToLower()
       ren $name $temp
       ren $temp $name
   }
}

0

Add a comment

In this tutorial I’m going to show how to:
• Create an ASP.NET Core MVC Application and Publish to Azure
• Create/Purchase a Custom Domain from a Custom Domain Provider
• Configure Custom Domain on Azure
Alt Text
You can find the PDF version of this tutorial here.
You can find all my Azure/.Net tutorials here and here.
Enjoy !!
0

Add a comment

About Me
About Me
Blog Archive
Loading
Dynamic Views theme. Powered by Blogger. Report Abuse.