简体   繁体   English

批量重命名多个文件

[英]Renaming multiple files in batch

I need to copy all xlsm files from the May directory into the June directory (that part is easy, I've already done that).我需要将 May 目录中的所有 xlsm 文件复制到 June 目录中(这部分很简单,我已经完成了)。 My issue is with all the files ending with "May16.xlsm" .我的问题是所有以"May16.xlsm"结尾的文件。 I want the "May" part of the filename removed and replaced with "Jun".我希望删除文件名的“May”部分并替换为“Jun”。

I can take off the last 5 characters... but I can't figure out how to add them.我可以去掉最后 5 个字符……但我不知道如何添加它们。

I've got 350+ files to rename... and I'd rather not do it manually!我有 350 多个文件要重命名……我不想手动重命名!

It's not as complex as you thought没你想的那么复杂

ren May* Jun*

Will work.会工作。 Or if you want only *.xlsm files或者如果你只想要*.xlsm文件

ren May*.xlsm Jun*.xlsm

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM