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

0 votes
asked Jul 15, 2010 by hgirma

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?

1 Answer

0 votes
answered Jul 16, 2010 by hgirma

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.

Welcome to Q&A, where you can ask questions and receive answers from other members of the community.
Website Online Counter

...