【发布时间】:2019-10-11 15:06:42
【问题描述】:
【问题讨论】:
-
如果这会产生重复的文件名,您有什么计划?
a file - 57603333和another file 57603333将产生相同的名称。 -
@lit后面的8位数字是唯一的数字
标签: powershell cmd command-line
【问题讨论】:
a file - 57603333 和 another file 57603333 将产生相同的名称。
标签: powershell cmd command-line
你可以试试:
Get-ChildItem | ForEach-Object {$test = $_.Name.Split(" - "); Rename-Item -Path $_ -NewName $test[$test.Count - 1]}
【讨论】: