Is it possible to batch rename a series of files and keep the original extensions in a sequence?
For example, if you had the files in a directory: dogfile1.jpg, wolffile493.png, and dogfile59.jpg
and wanted to rename them: dog1.jpg, dog2.png, dog3.jpg
I saw you can use this to batch rename but it renames it to the extension you select (ex. jpg):
$nr=1
Dir | %{Rename-Item $_ -NewName (‘NewFile{0}.jpg’ -f $nr++)}
Recent Questions...
ما را در سایت Recent Questions دنبال میکنید
برچسب: powershell batch rename,powershell batch rename files,powershell batch rename regex,powershell batch rename file extension,powershell batch rename folders,powershell batch rename substring,powershell rename multiple files wildcard,powershell rename multiple folders,powershell rename multiple files in folder,powershell rename multiple files recursive,
نویسنده: استخدام کار
بازدید: 430
تاريخ: شنبه
6 شهريور
1395 ساعت: 10:38