Computing.Net > Forums > Windows XP > Batch code to Unzip files

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.

Batch code to Unzip files

Reply to Message Icon

Name: kk949
Date: June 3, 2005 at 02:44:04 Pacific
OS: Windows XP pro
CPU/Ram: 2.8GHz 512MB
Comment:

Hi Everone,

I had a zip file on a CD locked with a password (i know the password). I wanted to create a batch file that will verify password and extract the zip file onto c:\ drive. Since the CD is going to be distributed amongst windows 2000, xp users, i am not sure if for e.g. all will have pkunzip, etc.

Just wondering anyone out there can help.

Much Appreciated,
KK



Sponsored Link
Ads by Google

Response Number 1
Name: Mechanix2Go
Date: June 3, 2005 at 04:08:30 Pacific
Reply:

Hi KK,

If the user does not have PZUNZIP, he'll be hard pressed to run it.

Sounds like you'll need to include it on the CD.

So if the CD drive is R:

r:\pkUNzip -d r:\test c:\ -sabc


where test is the ZIP and abc is the password.

HTH


0

Response Number 2
Name: jefro
Date: June 3, 2005 at 14:46:52 Pacific
Reply:

You need to remake the zip into a self extacting zip file.

Seems like xp pro should support many .zip formats.


0

Response Number 3
Name: kk949
Date: June 5, 2005 at 05:37:38 Pacific
Reply:

Thanks a lot for your responses.

HTH, i tried putting in the statement onto my code replacing the letters with drive name, etc but in command prompt it gave me the error saying that

c:\pkunzip is not recognised as an internal or external comand, operable program or batch file.

i tried searching for pkunzip on my computer but did not find anything. would that explain things?? one of the older forums said that windows xp dos editor is not a real dos editor??!! so maybe pkunzip is not supported.

to be honest i am pretty new to using batch files so might be doing something really stupid.


0

Response Number 4
Name: kk949
Date: June 5, 2005 at 05:44:28 Pacific
Reply:

forgot to add,

jefro, how do i remake the zip file onto a self extracting file. do i need to get a specific software for it or the batch code would automatically do it for me??


0

Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More







Post Locked

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


Go to Windows XP Forum Home


Sponsored links

Ads by Google


Results for: Batch code to Unzip files

batch file to find files in folder www.computing.net/answers/windows-xp/batch-file-to-find-files-in-folder/175316.html

Batch script to rename files www.computing.net/answers/windows-xp/batch-script-to-rename-files/173968.html

Batch Script to extract the child files www.computing.net/answers/windows-xp/batch-script-to-extract-the-child-files/180313.html