Link to home
Start Free TrialLog in
Avatar of mgross333
mgross333

asked on

How to Zip a Folder NOT a file

I fix PCs for a living; this is for a customer even though I am testing it on my office PC.

Please read what is below and then answer the questions (A) - (D) in the QUESTIONS section below the first part. The LONG first part is prolog to the Questions farther down.

I need to know how to zip a folder NOT A FILE. I do not mean how to COMPRESS a folder which could be done MAYBE with RAR and ACE and so on. The folder MUST be created with Winzip NOT any other compressor because a 3rd party program my customer uses ONLY will import the folder if it is in TRUE Winzip format.

I am running Windows XP Home XP SP3 fully updated. I have installed the Evaluation version of WinZip15 just now.

(1) I start WinZip 15 and look for an option under File that will zip a folder AND ALL I CAN FIND IS ZIP A FILE. If I try to point it toward a folder it does not work

(2) I go to  http://support.microsoft.com/kb/306531
and follow the directions

On the File menu, point to New, and then click Compressed (zipped) Folder

BUT  that option "Compressed (zipped) Folder" does NOT show up under New.
HOW CAN A MS KB BE WRONG ???? But it is wrong.

(3) I go to  www.webdeveloper.com/forum/archive/index.php/t-35732.html
and follow the directions . Essentially the same PROBLEM as in (2) above occurs

right click the folder -> add to zip (or add to archive if you've got winrar (http://rarlabs.com/)

Well guess what the "add to zip" option is NOT in the right click menu. Sounds just like (2) above if you think about it, right ??

BEFORE I GO ON PLEASE NOTE THAT WinZip>Options>Configuration>Explorer Enhancements has EVERY BOX IN BOTH COLUMNS CHECKED. So NO, the problem is not that WinZIp setting which CLEARLY RELATES DIRECTLY TO (2) AND (3) ABOVE. The related WinZIp setting is CORRECT for (2) and (3) above.

(4) FINALLY I go to  

http://uk.answers.yahoo.com/question/index?qid=20060906114417AA1Ch1q

and YES when I right click the folder and then select Send To I get a "Compressed (Zipped) folder" option
BUT when I choose that,
NEXT
a window pops up saying something about for this to work Compressed Zip Folder must be associated with something and this is currently NOT the case so I say do it and I DO FINALLY get as output a zipped folder. IMPORTANT: I have not included the exact text as it is LONG and can not be copied (and pasted) from. But if a TRUE Zip expert responds here I assume they will be familiar with the popup, right ??

NOT DONE YET
(1) When I repeat with another folder I get the same popup BUT did I not say to approve whatever association (see above) so WHY IS IT ASKING ME AGAIN. ?
(2) When I next open WinZip I get a message THAT WAS NOT THERE BEFORE saying that Winzip is NOT associated with *.zip **FILES** and do I want to do that. i.e what I did in the popup box above caused zip to no longer work with files !!!


WHY IS THIS SO HARD ? IS THIS NOT SUPPOSED TO JUST WORK ?

QUESTIONS
(A) Will (4) above work and the resulting folder-name.zip is REALLY a correctly zipped FOLDER. This is a YES or NO question, right, so please answer with a YES or NO.
(B) Why is (2) above NOT working given it is a MS KB article for Windows XP and I have the latest version of WinZIp (V15) installed ???
(C) What does the Compressed folder association popup box coming up with (4) above MEAN and what is it getting at ?? After saying Yes to it why does it come up again for another folder when I approved the association which is USUALLY NOT a one time thing?
(D) Why after I approve the Compressed folder association does Winzip come up a message that it is no longer associated with Zip **FIles**.

Mike
ASKER CERTIFIED SOLUTION
Avatar of ☠ MASQ ☠
☠ MASQ ☠

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of mgross333
mgross333

ASKER

From the Question Poster.

To those that answer Question (B) above by saying that KB article is out of date and (4) in my question is NOW the correct way to go, please go to http://support.microsoft.com/kb/306531 (referred to in Question (B)
and read the top few lines and you will see that that KB clearly applies to XP SP3 which is the latest SP, right ?? Also the date of the KB is Nov. 6, 2008 which is AFTER XP SP3 was released..

NO, it is NOT out of date. It is 2 1/2 years old BUT it applies to the latest Windows XP Service Pack which IS installed (as stated near the top of my question) on the PC I am testing this with.

Mike
MASQUERAID,

Thank you for your prompt and complete reply. The important part is your answer to (A) as YES. However I have followup questions on your answers to (B) - (D).

(1) I copy pasted (from your post)

 rundll32 zipfldr.dll,RegisterSendto

into my Run command and clicked OK, got no error message or confirmation,  and then tried the approach in the MS KB article and I still did NOT get the
On the File menu, point to New, and then click Compressed (zipped) Folder

to work, ie. there was NO "Compressed (zipped) Folder" option after selecting New.

Also when I used approach (4) (your YES reply to Question (A)) I **STILL** got the same popup about Compressed (zipped) folder association

SO, it appears that executing "rundll32 zipfldr.dll,RegisterSendto" has had NO EFFECT. Is it possible I need to do it in a DOS window (Run>cmd) OR that I need to reboot for your command to take effect ?

(2) Regarding
> my usual approach would be to create an empty .zip file, open it and drag and drop the folder into it.

How do I create an empty zip file ?
Please starting with the interface to WinZip 15 (Evaluation version) provide step by step instructions on how to do that (i.e. click File (or whatever) then click whatever then click whatever and so on).

Mike

Give me a while - I'm going to set up a clean XP install and see why this didn't work (& I don't want to add WinZip 15 over my earlier licenced version :))
In the meantime if v15 hasn't changed that much if you just open WinZip and choose File>New you'll create an empty Zip file which you can name & save wherever - then close WinZip, locate the icon for the file you've just created and drag and drop a folder onto it for it to be compressed.
MASQUERAID:

Regarding
> open WinZip and choose File>New...........

There is NO File>New option in WinZip 15. There is ONLY a a AFile>New Zip File on CD or DVD which is of course useless. There is also a File>New Archive which INSISTS that you specify files to go into the Zip file.

Mike
OK, that sounds "really helpful" - pehaps they've put it somewhere else.

One thought I had - could you check the XP machine's drive is formatted as NTFS?  If it's FAT32 compressed file won't be available as an option.
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
If you have NTFS as the file system and still don't have the "Compressed (zipped) Folders" available as a right-click option in New then try this registry fix

Cut and paste the text into Notepad and save as Zip.reg then merge it into your registry by opening the file.

Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\.zip]
"PerceivedType"="compressed"
@=""

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\.zip\CompressedFolder]

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\.zip\CompressedFolder\ShellNew]
"Data"=hex:50,4b,05,06,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\.zip\OpenWithProgids]
"CompressedFolder"=""

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\.zip\PersistentHandler]
@="{098f2470-bae0-11cd-b579-08002b30bfeb}"

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\.zip\ShellNew]

Open in new window


Source: http://www.kellys-korner-xp.com/xp_tweaks.htm  (#85b)
MASQUERAID:

My file system IS NTFS. I tried your screen shot approach and IT WORKED. Thanks (although the Right click folder, Send To etc etc approach also works and produces the same zip file).

HENCE THERE IS NO LONGER A NEED TO POST FURTHER HERE.

Mike