ZIP/UNZIP issues

#1
1. Neither ZIP nor UNZIP can handle path names containing spaces.

2. UNZIP will not restore multi-level directory structures. It appears to
restore the files at the highest level plus empty subdirectories.

3. In addition to the /P option which stores full path information for all
files, it would be useful for ZIP to be able to store folder names only for
folders recursed by /R. All the zip programs I've used have such an option.

-- Howard
 
#2
On Sat, 03 Oct 2009 19:30:43 -0500, Howard Goldstein <>
wrote:

|1. Neither ZIP nor UNZIP can handle path names containing spaces.

This is OK:

v:\> zip "a b.zip" "a b.txt"
<= V:\a b.txt

The zipfile is correctly created. But,

v:\> unzip /v "a b.zip"
TCC: Error in archive "a b.zip" :
Invalid argument.
Filename : "a b.zip"
--
- Vince
 

rconn

Administrator
Staff member
May 14, 2008
10,495
94
#3
1. Neither ZIP nor UNZIP can handle path names containing spaces.

2. UNZIP will not restore multi-level directory structures. It appears to
restore the files at the highest level plus empty subdirectories.

3. In addition to the /P option which stores full path information for all
files, it would be useful for ZIP to be able to store folder names only for
folders recursed by /R. All the zip programs I've used have such an option.

-- Howard
1) UNZIP has been fixed for build 23. I have no problems with ZIP -- can you give me an example of what's failing for you?

2) You need to specify the /D option to UNZIP if you want to copy the directory structure.

3) Not sure I understand what you're asking for -- /R already does save path information.
 
#4
Rex Conn wrote:


> ---Quote (Originally by Howard Goldstein)---
> 1. Neither ZIP nor UNZIP can handle path names containing spaces.
>
> 2. UNZIP will not restore multi-level directory structures. It appears to
> restore the files at the highest level plus empty subdirectories.
>
> 3. In addition to the /P option which stores full path information for all
> files, it would be useful for ZIP to be able to store folder names only
> for
> folders recursed by /R. All the zip programs I've used have such an
> option.
>
> -- Howard
> ---End Quote---
>
> 1) UNZIP has been fixed for build 23. I have no problems with ZIP -- can
> you give me an example of what's failing for you?
>
> 2) You need to specify the /D option to UNZIP if you want to copy the
> directory structure.
>
> 3) Not sure I understand what you're asking for -- /R already does save
> path information.
>
1. Sorry, I misspoke. ZIP does handle LFNs correctly.

2. /D is listed in the help but not described. When I tried it, it did
what I wanted but failed to extract the last eight files in one directory in
the archive. I will send you private email later with the archive so you
can see for yourself.

3. More explanation and samples of what I mean will be in the email.

4. The folders created by UNZIP /D where not added to JPSTREE.IDX.