发布网友 发布时间:2024-02-09 15:23
共3个回答
热心网友 时间:2024-02-15 03:34
你的意思是不是想重命名压缩包中的123为456?
如果是的话:
方法如下: #我重命名的是123.txt,你按照需要修改。
参考:
Rename files inside of archive. This command is supported for RAR
and ZIP formats. The command syntax is:
winrar rn <arcname> <srcname1> <destname1> …
<srcnameN> <destnameN>
For example, the following command:
WinRAR rn data.rar readme.txt readme.bak info.txt info.bak
will rename readme.txt to readme.bak and info.txt to info.bak in
the archive data.rar.
It is allowed to use wildcards in the source and destination names
for simple name transformations like changing file extensions. For
example:
WinRAR rn data.rar *.txt *.bak
will rename all *.txt files to *.bak.
WinRAR does not check if the destination file name is already present
in the archive, so you need to be careful to avoid plicated names.
It is especially important when using wildcards. Such command is potentially
dangerous, because a wrong wildcard may corrupt all archived names.
顺便:
“压缩后的文件123,分别命名为456,但是原来的文件名还是123” 这句汉语估计99个老外都看不懂。
我也不太确定你的意思,只能说,你太有才了!
热心网友 时间:2024-02-15 03:35
@echo off放在和B文件夹同一目录下运行,只压B文件夹,重名已压好的RaR中所有原文件名为123的文件为456
热心网友 时间:2024-02-15 03:35
rar a -ep 456.rar d:\a\b\123.txt追问这样不行啊,是想要实现原来文件名不变,压缩后的文件夹解压后改变了文件名,这个要怎么实现?