Tom's Guide | Tom's Hardware | Tom's Games
![]() |
![]() |
![]() |
Hi
I am trying to zip files using PKzip but the destination directory has spaces in the name. I have tried putting the path in double quotes but I get the message
PKZIP: (E01) can't create: C:/DOCUMENTS AND SETTINGS/XXX.ZIP
Can anyone help please
Thanks

Try right clicking on C:/DOCUMENTS AND SETTINGS and select Properties to see it's DOS name and use it for your path.
HTH
Bryan

Not sure what is going on here but without any shadow of doubt the correct path in any version of Windows is split by using the backslash \ and never with the forward slash.
DerekW

Unless it's a newer or different version I'm not familiar with, PKzip is a dos program and limited to 8.3 format so it wouldn't be able to create a 'documents and settings' directory.

OK DAVINCAPS, maybe so then. Outside my experience but I'll keep watching, always anxious to learn - too easy to miss out on something.
I thought that PKZip was very old indeed but for all I know there could be some newer version kicking around.
DerekW

Yeah, I still use verson 2.04 which as far as I know is the last one and its files are dated 1993. Bryan was thinking the same thing about the dos path but I didn't notice that when I posted.
You're obviously right about the backslash being correct in the path. It wasn't clear if he was intentionally using the forward slash or if pkzip was converting it that way.

Hi Derek & DAVEINCAPS,
Quite right that the DOS / winders path separator is backslash.
PKZIP uses forward slashes in it's error msgs.
I always assumed it was coded that way because PK came from a unix background.
And yes, 2.04g was the current version for a long time. There is a 2.50 copyright 1999 but for garden-variety use it seems about the same as 2.04g.
Bryan's idea of using progra~1 works.
So does changing to the directory where the files are.
If at first you don't succeed, you're about average.M2

Wowee. That's the second time I've learned something new (that was old) tonight LOL. Thx folks.
I must own up to using forward slash when describing paths through the Start menu (to differentiate with a normal DOS style file/folders path).
Jeff
Apologies for hijacking your post a tad, I just love to learn....DerekW

PKZip v2.5x preserves long filenames when run from a DOS 'window' (and doubtless other enhancements). Later versions of (the excellent) ARJ are also LFN compatible
Computers in the future may have only 1,000 vacuum tubes and perhaps only weigh 1 1/2 tons.
- Popular Mechanics, 1949

Hi jboy,
I beleive you, buthis won't work:
pkzip aaa "c:\program files\*.*"
If at first you don't succeed, you're about average.M2

Well... I can't say that I really use PKZip in Win9x, so I'm merely taking their word for it (never ever used in in NT/XP/2K either)
From Whatsnew.txt {2.50}:
* PKZIP allows you to disable (with the -n option) or enable (with the -n+ option) long file name (i.e. LFN) support.
and
* PKZIP/PKUNZIP/PKSFX supports Windows 95/98 (DOS 7) long filenames.
For long & hairy command line compression, I'm more familiar with (and much prefer) ARJ
Computers in the future may have only 1,000 vacuum tubes and perhaps only weigh 1 1/2 tons.
- Popular Mechanics, 1949

Wow!!!!!!
This a great forum
Thanks guys for all your interest and help
I'll try the +n option and see how I get on :))))

I take it you're using the 2.50 version? I don't think the older versions will preserve long folder or file names under any circumstances.

![]() |
![]() |
![]() |

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.
| Ads by Google |