重命名文件&文件夹在Windows(7)中递归到[A-ZA-Z0-9-]
我搜索了一个在 Windows (7) 中将文件和文件夹递归重命名为 [A-Za-z0-9-] 的解决方案。
我会发布一个问题,但这并不完美,并且没有文件夹重命名。我也在寻找更好的解决方案。欢迎使用批处理文件。
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
该解决方案并不是真正完美的。还搜索更好的解决方案。
我对Freecommander XE进行了操作:
此教程仅用于文件。使用文件夹,这在递归方面存在问题,因为具有已更名为父母文件夹的子文件夹未重命名。
提示:请不要小心。您可以重命名所有文件名不可逆!
当您拥有容量时,请使用副本。那不是开玩笑。
特殊(两个)字符信息:
search = aqualent→替代方案
[我不知道] =您知道吗?请在评论中写下它。 [问题:此引用的名称是什么?
]
第一:搜索&替换特殊的(两个位)字符,因为,这还不包括特殊字符(请参见下文的正则表达式)。
搜索→更换
搜索:(
您最终发现另一个特殊的char /二char)
对这些搜索与其他char相同。
搜索替换html url编码参考:
实体和字符列表:
在大多数情况下,并非所有参考都存在于文件名中。
但是搜索&用正则表达式替换。
请不要小心!
搜索→替换:
信息:资本W匹配所有字符,除了A-ZA-Z0-9。但是不幸的是,A-ZA-Z0-9包括ñbIS类似,除了它。因此,首先重命名特殊字符(两个)字符。
或使用其他模式:
进一步替换(Umlaute):
搜索→替换
最后但并非最不重要的一点:
搜索→替换:
特殊搜索→替换:
领先的破折号:(
重命名为一无所有)
尾随破折号:(
重命名为“一无所有”)
不要忘记每次都单击“重命名”按钮检查更名的文件名。
This solution is not realy perfect. Also search for a better solution.
I have do it with FreeCommander XE:
This tutorial works only recursively for files. With folder, this have a problem with recursively, because subfolder with already renamed parent folder are not renamed.
Hint: Please be absolutely carefull. You can rename all filenames irreversible!
When you have the capacity, make it with a copy. That is not a joke.
Special (two bit) chars INFO:
search = aequivalent → alternative
[i don't know] = you know it? please write it in a comment. [Question: What is the name of this References?]
In the Multirename window:
First: search & replace the special (two bit) chars, because, this have not special chars included (see below at regular expression).
search → replace
Make a new search:
(you find eventually an another special char / two bit char)
Do the same with these as with the others.
Search an replace for HTML URL Encoding Reference:
List of entities and characters: https://www.w3schools.com/tags/ref_urlencode.asp
In most cases not all references are present in the filenames.
Yet search & replace with Regular expression.
Please be absolutely carefull!
search → replace:
Info: The capital W match all chars, except a-zA-Z0-9. But a-zA-Z0-9 included unfortunately ñ û Â and similar and except it. Therefore first rename the special (two bit) chars.
Or use an another pattern like this:
Further replaces (Umlaute):
search → replace
Last but not least:
search → replace:
Special search → replace:
Leading dashes:
(rename to nothing)
Trailing dashes:
(rename to nothing)
Don't forget to check the renamed filenames every time befor click the "Rename" button.