I have a rar that is hidden.I want to add more files with it using winrar (preferably); without make visible is there any way to do it with cmd or batch file?
There are actually two parts to your question. First, how to add files to a hidden RAR archive using WinRAR. Second, how to do it from a command line.
Windows itself does not place any restrictions on access to files marked "hidden". They are just that; hidden, not inaccessible.
Back in the old days of MS-DOS, two key system files were marked as hidden:
You can try this yourself by doing something like the following:
Note that WinRAR might barf at being asked to operate on archive files with the hidden attribute set, although frankly I doubt it implements such checks. Notepad has no problem working with files marked as hidden.
The second part is how to drive WinRAR (or any RAR archiver) from the command line. That is something I don't know, and it might actually be better to ask that as a separate question.
I don't think it's possible to add files to a hidden RAR using WinRAR. You will have to unhide the file for the duration of adding files atleast and then re-hide it again.
WinRAR also comes with the command line utility
As explained by Michael Kjörling, there is nothing stopping you from adding files to an archive that has the hidden attribute set. To add a file to an archive, use the following command: