如何将文件添加到自解压 RAR 存档中?

发布于 2024-09-10 16:31:36 字数 178 浏览 0 评论 0原文

有没有办法自动将文件添加到现有的 SFX 存档中?

我使用 WinRAR 创建了自解压存档 Test.exe

现在我想将 C:\test\Test.txt 添加到 Test.exe 中。这可能吗?

Is there a way to automatically add a file to an existing SFX archive?

I have created with WinRAR the self-extracting archive Test.exe.

Now I want to add C:\test\Test.txt to Test.exe. Is this possible?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

还在原地等你 2024-09-17 16:31:36

好的,我找到了以下命令行参数来实现这一点。

"C:\Program Files\WinRAR\rar.exe" a -ep C:\test\test.exe c:\test\test.txt
  • -ep 是一个忽略路径的开关,我想要
  • a 添加它。

如果您从命令提示符运行 rar 或 winrar,则会有更多帮助。

Ok, i found out the following command line arg to do the trick.

"C:\Program Files\WinRAR\rar.exe" a -ep C:\test\test.exe c:\test\test.txt
  • -ep is a switch to ignore the path, which i wanted
  • a is to add.

more help is there if you run rar or winrar from command prompt.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文