Handling ZIP files from command prompt?
Is it possible to handle ZIP files from command prompt? I'd like to add one file to existing zip file but without any utilities like 7Zip.... working with computers and people ... writing a little blog @ http://itpendium.wordpress.com just for fun ...
June 12th, 2009 1:17pm

ITpendium - The "obvious" way of doing so - i.e. Copy file1.txt test.zip - doesn't seem to work. It merely creates a text file with the ZIP extention that nothing can quite figure out until you rename the Test.zip file to Test.txt. So it would seem to me there's no way to do it without a 3rd party tool like the old PKZip, or 7Zip or some other tool that can be accessed by way of the command prompt.
Free Windows Admin Tool Kit Click here and download it now
June 12th, 2009 2:59pm

Yup, Wolfie is correct - .zip support in Windows XP and newer is handled entirely through a .dll which functions only in Windows Explorer API. PKZip, 7zip, and WinRAR can all do this just fine, however.-Alex
June 12th, 2009 8:32pm

Alex - WinRAR does ZIP files, but the DOS based RAR version doesn't.
Free Windows Admin Tool Kit Click here and download it now
June 12th, 2009 10:26pm

Aha! Thanks for the clarification, Wolfie.-Alex
June 12th, 2009 11:15pm

ITPendium,If you read through this thread, there doesn't seem to be a way to do it without some programming code.
Free Windows Admin Tool Kit Click here and download it now
June 13th, 2009 5:38am

Aha! Thanks for the clarification, Wolfie. -Alex Alex - Yeah.. Learned that the hard way - tried to unzip a few ZIP files in a given directory with the DOS RAR.exe - got an error saying that it had NO clue as to what to make of the files in question. But the WinRAR utility can handle them just fine - probably makes use of the ZipFldr.dll that comes with Windows.As the thread dwolters posted shows - there's no way to do it without some app, utility in between - the CMD prompt just won't go there.
June 13th, 2009 6:07am

ITPendium, If you read through this thread , there doesn't seem to be a way to do it without some programming code. Tnx for the pointer. At the moment I'm using command line version of 7Zip.... working with computers and people ... writing a little blog @ http://itpendium.wordpress.com just for fun ...
Free Windows Admin Tool Kit Click here and download it now
June 13th, 2009 8:42pm

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics