Winrar - Command line to create ZIP Format
Posted on 2011-04-22
As far as I can tell I am currently using Winrar 3.62 on my Win XP Pro workstation
And with that version the interactive GUI allows me to designate a ZIP format output - and it works.
But I have been trying to run Winrar through the Command Line.
I can get an archive file successfully created, but when I attempt to open it with something else like WinZip, I get an error telling me that the file is not in a valid format.
I am guessing that regardless of the output file extension that I have designated, I am really getting a .RAR file which just happens to have a .ZIP extension.
I have found various Winrar command option references on the web to end up with a valid ZIP format archive file.
None have resulted in a file which can be un-zipped with WinZip, but they do extract through WinRAR
Currently I am trying the following:
C:\PROGRA~1\WINRAR\RAR.EXE a -zip "C:\Temp\ChkZip.zip" "C:\Temp\Temp*.dbf"
Any advice on how to correct my command line so as to get a valid ZIP Format archive file would be greatly appreciated.