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.