Powershell重命名文件夹
$TargetFolder = "F:\Code\优化后\"
$folders = get-childitem $TargetFolder -force
Foreach ($Folder in $folders)
{
$FolderPath=$Folder.FullName
Rename-Item $FolderPath\cacheFile $FolderPath\cacheFile1
}
$TargetFolder = "F:\Code\优化后\"
$folders = get-childitem $TargetFolder -force
Foreach ($Folder in $folders)
{
$FolderPath=$Folder.FullName
Rename-Item $FolderPath\cacheFile $FolderPath\cacheFile1
}