如果要压缩大量文件,并且要为每个文件添加密码保护,那么最简单或最快速的方法是什么?今天的超级用户问答帖子回答了一位好奇的读者的问题。
今天的问答环节是由SuperUser提供的,SuperUser是Stack Exchange的一个分支,是一个由社区驱动的问答网站分组。
超级用户读者DAE想知道如何用尽可能少的步骤压缩和密码保护文件:
I need a way to take a bunch of files and compress them into separate zip files with each using the same password. I want to be able to do this in one simple step. I have created a batch file that zips each of them using 7zip (which worked perfectly), but does not password protect them.
Is there a command that I can add to the batch file that includes the password? Or alternatively, how can I create a batch file that will password protect the compressed files?
如何在尽可能少的步骤中压缩和密码保护文件?
超级用户贡献者DavidPostill为我们提供了答案:
How can I create a batch file that will password protect the compressed files?
Use the -p option, -p (set password) switch, which specifies the password.
Syntax
{password} specifies the password
Examples
Compresses *.txt files to archive.7z using the password “secret”. It also encrypts archive headers (-mhe switch) so that the file names will be encrypted.
If compressing folders:
Extracts all files from archive.zip using the password “secret”.
Source: -p (set Password) switch
有什么要补充的解释吗?在评论中发出声音。想从其他精通技术的Stack Exchange用户那里了解更多答案吗?在这里查看完整的讨论主题。
...引导你完成账户删除的过程,比如AccountKiller,它提供了如何删除大量不同在线服务账户的说明。 ...
...果您每天都使用FTP,更好的选择是改用fileexplorer。下面是如何设置文件资源管理器以方便FTP传输。 ...
...或者是别的什么问题?我们将解开这个谜团,并向您展示如何在Mac上使用磁盘权限。 ...
... Saikat Basu准确地解释了如何删除长文件名的文件。检查一下,省去一些麻烦,并修复您的USB闪存驱动器。 ...
...也是免费的。不仅如此,你还可以自由地看看这些程序是如何**的。如果您有专业知识,您可以使用此代码创建自己的软件。 ...
... 下面是如何修复Windows10上的反恶意软件服务可执行文件高CPU使用率错误。 ...
...,并节省存储该演示文稿的设备上的磁盘空间。下面介绍如何在Microsoft PowerPoint中压缩图像。 请注意,此功能仅适用于桌面版本的Office,而不适用于Office for the web。 在powerpoint for windows中压缩图像 打开包含要压缩的图像的PowerPo...
...取消选中此选项,Word将压缩文档中的所有图像。 相关:如何减少PowerPoint演示文稿的文件大小 在“分辨率”下,选择要使用的分辨率,然后单击“确定” 文档中的图像现在将被压缩。 在mac上压缩word中的图像 在Mac上,打开包含...