Computing.Net > Forums > Windows 95/98 > PK Zip. Spaces in directory name

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

PK Zip. Spaces in directory name

Reply to Message Icon

Name: psionman
Date: September 8, 2005 at 01:46:10 Pacific
OS: win2000
CPU/Ram: 1mb
Comment:

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



Sponsored Link
Ads by Google

Response Number 1
Name: Bryco
Date: September 8, 2005 at 03:44:07 Pacific
Reply:

Try C:\ instead of C:/

Bryan


0

Response Number 2
Name: psionman
Date: September 8, 2005 at 03:54:03 Pacific
Reply:


Thanks

I have in the command. The C:/ is the message returned by PkZip


0

Response Number 3
Name: plainandsimple
Date: September 8, 2005 at 04:08:55 Pacific
Reply:

This is the W95 Forum your O/S is W2K....

You could try a freeware ZIPPER:

http://www.info-zip.org/


0

Response Number 4
Name: Bryco
Date: September 8, 2005 at 08:28:30 Pacific
Reply:

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


0

Response Number 5
Name: Mechanix2Go
Date: September 8, 2005 at 08:38:25 Pacific
Reply:

Or CD to the directory and run PKZIP there.


If at first you don't succeed, you're about average.

M2


0

Related Posts

See More



Response Number 6
Name: Derek
Date: September 8, 2005 at 13:17:38 Pacific
Reply:

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


0

Response Number 7
Name: DAVEINCAPS
Date: September 8, 2005 at 14:24:18 Pacific
Reply:

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.


0

Response Number 8
Name: Derek
Date: September 8, 2005 at 15:12:56 Pacific
Reply:

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


0

Response Number 9
Name: DAVEINCAPS
Date: September 8, 2005 at 15:31:14 Pacific
Reply:

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.



0

Response Number 10
Name: Derek
Date: September 8, 2005 at 15:56:33 Pacific
Reply:

Sure thing DAVEINCAPS, we shall see.

DerekW


0

Response Number 11
Name: Mechanix2Go
Date: September 8, 2005 at 16:29:32 Pacific
Reply:

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


0

Response Number 12
Name: Derek
Date: September 8, 2005 at 17:33:38 Pacific
Reply:

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


0

Response Number 13
Name: jboy
Date: September 8, 2005 at 18:31:04 Pacific
Reply:

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


0

Response Number 14
Name: Mechanix2Go
Date: September 8, 2005 at 21:45:05 Pacific
Reply:

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


0

Response Number 15
Name: jboy
Date: September 8, 2005 at 22:33:15 Pacific
Reply:

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


0

Response Number 16
Name: psionman
Date: September 9, 2005 at 01:22:23 Pacific
Reply:

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 :))))


0

Response Number 17
Name: DAVEINCAPS
Date: September 9, 2005 at 13:02:03 Pacific
Reply:

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.


0

Response Number 18
Name: psionman
Date: September 26, 2005 at 09:29:51 Pacific
Reply:

Thanks Guys

Version 2.50 and the -n+ option does work

Brilliant!!!!!!!!!!!!!!!!!!!!!


0

Sponsored Link
Ads by Google
Reply to Message Icon






Post Locked

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


Go to Windows 95/98 Forum Home


Sponsored links

Ads by Google


Results for: PK Zip. Spaces in directory name

Windows explorer- Spaces in file names www.computing.net/answers/windows-95/windows-explorer-spaces-in-file-names/98831.html

Auto choosing drive d:\\(directory name) www.computing.net/answers/windows-95/auto-choosing-drive-ddirectory-name/114767.html

Out of disk space on drive C. www.computing.net/answers/windows-95/out-of-disk-space-on-drive-c/34518.html