最佳答案
根据 WinRAR manual 中提供的文档使用-cp <name>
切换以选择压缩配置文件。
以下是文档中的引用:
Using this switch you can load settings stored in WinRAR compression profile. You need to specify a profile name as switch parameter. If profile stores selected file names, WinRAR will compress both files specified in the command line and stored in profile. If profile contains an archive name, it will be used in archiving and you should not specify another archive name in command line.
使用“我的文本”压缩配置文件中的设置存档 *.txt 文件,方法是:
WinRAR a "-cpMy Texts" texts *.txt
关于batch-file - 如何通过命令行使用特定配置文件创建 WinRAR、RAR 文件,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/47644429/