tags:

views:

6

answers:

1

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

I have created(with WinRar) Test.exe.

I now want to add C:\test\Test.txt to Test.exe. is this possible?

A: 

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.