I assume that you try to decompress the archive with
Code:
unrar e archive.rar
This will extract only the files, just as you described. If you use
Code:
unrar x archive.rar
the files will be extracted with their full path.
For more info on unrar look at