本文介绍了带通配符的Windows REN命令不起作用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

好吧,我知道REN命令REN source dest的典型格式,并且有几个使用通配符重命名的示例.

Ok, I know the typical format for the REN command REN source dest and there are several examples to rename using wildcards.

示例:

REN *.txt *.doc

这会将您所有的.txt文件重命名为.doc.好吧,这一切都很好,但我有很多扩展名为.aaaa.bbbb的文件,而且在使用命令时:

This will rename all your .txt files to .doc. Well, this is all fine and dandy, but I have a bunch of files with extensions .aaaa.bbbb and when I use the command:

REN *.aaaa.bbbb *.aaaa

我以扩展名.aaaa.aaaa获得所有文件.现在,我无法提出REN命令来获取.aaaa扩展名.

I get all of my files with the extenstion .aaaa.aaaa. Now I cannot come up with a REN command to just get .aaaa extension.

推荐答案

ren *.aaaa.bbbb *.

有关其工作原理的解释,请参见 Windows RENAME命令如何解释通配符?

For an explanation as to why this works, see How does the Windows RENAME command interpret wildcards?

这篇关于带通配符的Windows REN命令不起作用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-13 13:58