batch-file - 如何通过命令行使用特定配置文件创建 WinRAR、RAR 文件

标签 batch-file command rar winrar

我指的是应用程序的 GUI 版本中可见的配置文件。可以通过命令行访问这些吗?我正在尝试通过计划的批处理脚本创建 RAR 文件。非常感谢。 enter image description here

最佳答案

根据 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/

相关文章:

windows - 简单的 bat 文件记录到文本但错误

java - 来自java程序的命令

java - 将 java -version 重定向到文件或变量

python - 在 Python 中将 RAR 文件的内容读入内存

windows - 如何批量检查windows/explorer的启动时间?

windows - 如何安全地回显文字字符串 "%I"?

windows - 批处理脚本 - 循环中的动态/变量路径

windows - 无法在 Windows 命令外壳中转义空格

regex - 用 R system() 解压 rar

linux - 在不解压缩的情况下获取 rar/zip 文件中的文件名