Powershell重命名文件夹

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

posted @ 2018-10-10 13:27  Harry Jiang  阅读(1782)  评论(0编辑  收藏  举报