开发者

How to add a file to a self-extracting RAR archive?

开发者 https://www.devze.com 2023-01-07 17:25 出处:网络
Is there a way to automatically add a file to an existing SFX archive? I have crea开发者_如何学Cted with WinRAR the self-extracting archive Test.exe.

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

I have crea开发者_如何学Cted with WinRAR the self-extracting archive Test.exe.

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


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.

0

精彩评论

暂无评论...
验证码 换一张
取 消