Usualy it is an option when you zip or RAR the file up.
Mine comes up with two choices when I right click on the folder. One is add to Nameoffolder.zip the other is just add to zip I pick that one and under option there is add folder information. The WinRAR program I use gives me the exact same options as winzip.