home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 9 Archive
/
09-Archive.zip
/
13unzr.zip
/
UNZSH.DOC
< prev
next >
Wrap
Text File
|
1996-02-15
|
20KB
|
480 lines
Power Programming, Inc. proudly Presents:
-- The UnZip Shell - UNZSH.EXE --
OS/2 PM front-end for ZIP Files
Registered Version
Version 1.3r
2/15/96
-- Legal Issues --
---------------------------------------------------------
The UnZip Shell is Copyright (C), John Wagner 1994-96. All Rights Reserved.
---------------------------------------------------------
The UnZip Shell is FREE SOFTWARE
---------------------------------------------------------
Previous versions of The UnZip Shell were shareware, requiring a $12
registration fee. This has changed as of this version. Why? I love
programming, and do it all day long at work. In past years I spent a lot
of time writing code at home, and even started my own small programming
shop out of my home. All of this has cut into my family life, and I've
decided to spend more time with my family, and leave the programming at
work. I will continue to write code at home, but plan on releasing
whatever comes of it for free.
Thanks to all the folks who spent the $12 to register the program. I
hope you feel you've gotten you're moneys worth and I do hope that my
releasing the program as freeware doesn't cause you any hard feelings.
You have my thanks for your support.
---------------------------------------------------------
Info-ZIP UNZIP:
---------------------------------------------------------
Prior versions of the The UnZip Shell required the use of a seperate
Info-ZIP UNZIP.EXE program. Near as I can tell, Info-ZIP is a collection
of very talented programmers who created and maintain UNZIP (and a
number of other ZIP utilities). They do so free of charge, and
distribute the source code to the programs. UNZIP is portable across
many platforms and is quite a piece of work.
The UnZip Shell is now a stand alone program. The source code to the
original UNZIP has been used heavily in the implemenation of The UnZip
Shell. Because of this, the original source code to UNZIP is still
included on the distribution disk of the registered verison of The UnZip
Shell. There are two explicit copyrights listed in the COPYING file
included with INFO-Zip UNZIP. I've read through them, and to the best of
my knowledge (I'm not a lawyer), I am in compliance with all of them.
The UnZip Shell does not use VMS.C, so that copyright shouldn't be in
effect. I have been in contact with Mr. Samuel Smith concerning his
copyrights on UNREDUCE.C and UNSHRINK.C and have his blessing to use the
code.
The following copyrights to UNZIP source follow:
(On UNREDUCE.C and UNSHRINK.C)
Copyright 1989 Samuel H. Smith; All rights reserved
(On the rest of the UnZipping code - from the file "COPYING")
The remaining code was written by many people associated with the
Info-ZIP group, with large contributions from (but not limited to):
Mark Adler (inflate, explode, funzip), Kai Uwe Rommel (OS/2), John
Bush and Paul Kienitz (Amiga), Antoine Verheijen (Mac) and Greg
Roelofs (lots of stuff). See the file CONTRIBS in the source dis-
tribution for a much more complete list of contributors. Also note
that, while this code may not be explicitly copyrighted, we do re-
quest that no one else try to copyright it, either. In other words,
use it with our blessings, but it's still our code. (You can con-
sider that an implicit copyright if it makes you feel better. :-) )
Thank you!
To further clarify, the following is extracted from the file COPYING
in the Info-ZIP UNZIP package:
Q. Can I use the source code of Zip and UnZip in my commercial
application?
A. Yes, so long as you include in your product an acknowledgment
and an offer of the original compression sources for free or
for a small copying fee, and make clear that there are no extra
or hidden charges resulting from the use of the compression
code by your product. In other words, you are allowed to sell
only your own work, not ours. [Note the additional restrictions
above on the code in unreduce.c, unshrink.c and vms.c.] If you
have special requirements, contact us at zip-bugs@wkuvx1.wku.edu.
---------------------------------------------------------
How to Register The UnZip Shell:
---------------------------------------------------------
You don't, it's free.
---------------------------------------------------------
Disclaimer - PLEASE READ:
---------------------------------------------------------
The UnZip Shell is provided "as is", with NO GUARANTEE that it works as
described here, or anywhere else. USE IT AT YOUR OWN RISK. There is also
no guarantee that upgrades to The UnZip Shell will be available at a
future time. There is also no guarantee that The UnZip Shell will remain
compatible with future .ZIP file formats that have yet to be released.
---------------------------------------------------------
What The UnZip Shell does:
---------------------------------------------------------
The UnZip Shell is an OS/2 PM front end for ZIP file archives. The
following instructions will guide you step-by-step to installing UnZip
Shell and integrating it into the Workplace Shell. The UnZip Shell
allows you to activate files in your ZIP archives without unzipping the
whole archive. This is handy for viewing text files, etc... Using the
OS/2 Object Association feature, you can activate any object that is
associated with the files contained within your archive files.
---------------------------------------------------------
Quick and Dirty installation:
---------------------------------------------------------
If you are an OS/2 and WPS expert, you can can get up and running
quickly by following these brief instructions:
Make sure you have a TEMP or TMP variable set in you CONFIG.SYS
file. Make sure TEMP or TMP is in CAPS.
Use INSTALL.CMD
Copy both UNZSH.EXE and INSTALL.CMD to the directory you want to have
The UnZip Shell installed in. Run INSTALL.CMD. INSTALL.CMD will
create a WPS object, and associate it with files ending in .ZIP.
- or -
Put UNZSH.EXE somewhere on your hard drive
Create a program reference object for UNZSH.EXE
Set the association for the object you just created to *.ZIP
Optionally, you can add a default target path as a parameter in
the settings notebook like so: -d=path
---------------------------------------------------------
How to install The UnZip Shell:
---------------------------------------------------------
Make sure you have a TEMP or TMP variable set in your CONFIG.SYS file:
-CONFIG.SYS-
SET TEMP=C:\TEMP
Make sure C:\TEMP exists! The UnZip Shell uses the directory specified
in the TMP or TEMP environment variable as a work directory. The UnZip
Shell will run if you don't have a TMP or TEMP environment variable, but
it will use the root directory of the drive that OS/2 started from.
I would like to point out that running The UnZip Shell without a TMP or
TEMP variable set is a potentially dangerous situation in the rare case
that you have a ZIP file with a file in it called CONFIG.SYS, and you
attempt to read it, and ignore the warning that reading the file will
overwrite a file that exists... make sure you have a TMP or TEMP
environment variable set, it's the right thing to do!
These directions will assume you have unpacked the distribution archive
into the directory C:\TEMP and you want to install the program into the
directory C:\OS2\APPS.
First, start an OS/2 command line session.
Copy UNZSH.EXE to the C:\OS2\APPS directory:
COPY C:\TEMP\UNZSH.EXE C:\OS2\APPS
COPY C:\TEMP\INSTALL.CMD C:\OS2\APPS
Now, make sure you are in the C:\OS2\APPS directory by entering the
following:
C:
CD\OS2\APPS
Run the INSTALL.CMD program:
INSTALL
The INSTALL.CMD program will create a WPS shell object, and associate
the object with WPS file objects that end in .ZIP. Anytime you see a WPS
file object, it will have the icon of The UnZip Shell. By double
clicking on the WPS file object, you will automatically invoke The UnZip
Shell with that file loaded.
If you always unzip files to the same directory, you should open
up the settings notebook of the new UnZip Shell object, and enter
the following into the PARAMETERS field:
-D=DRIVE:\DIR
WHERE: DRIVE: is the drive to (exp. C:)
WHERE: \DIR is the path on the drive (exp. \TEMP)
EXAMPLE: -D=C:\TEMP
---------------------------------------------------------
You can also run The UnZip Shell from the command line:
---------------------------------------------------------
USAGE: UNZSH [-D=path to unzip to] [filename.zip]
WHERE: [path to unzip to] is optional, do not include the []'s - it
specifies the target drive/directory to place the unzipped
files. Do include the -D= though.
WHERE: [filename.zip] specifies the file to unzip.
If you don't specify a file to unzip (by running the program without the
command line parameters) you can still load a ZIP file from within the
program by clicking the "FILE OPEN..." button.
---------------------------------------------------------
Running The UnZip Shell:
---------------------------------------------------------
Regardless of how you start The UnZip Shell, you will have the following
options...
Actions before unzipping:
Viewing/running files in the ZIP archive:
If you have the "File Viewer" radio button selected:
You can double click on a filename in the file listbox and The
UnZip Shell will bring up the OS/2 'E' editor with the selected
file loaded ('E' is the default editor, you can change your file
viewer in the "Defaults" dialog). When UnZip Shell exits, it
shuts down any 'E' sessions that may have been started and
erases any files that are being viewed. All of this takes place
in the directory specified in your TEMP or TMP environment
variable.
If you have the "Start Object" radio button select:
This is were the beauty of OS/2 comes into play... You can
double click on any file, and the object/program that is
associated with the type of file you have selected is started
with the selected file loaded.
Please note that double clicking is the same as pressing the
"Start/View selected" button. Also, you can select Start or View
from the popup menu.
Existing file Options:
These options control what The UnZip Shell does when it tries to
extract a file from a ZIP file, and the file already exists in the
directory that it is extracting to.
Embedded directory Options:
ZIP files can have sub-directories embedded in them. It is usually
desirable to re-create these sub-directories when unzipping the
file. By default, The UnZip Shell will create the sub-directories.
If you select "Junk directories" then the sub-directories won't be
created, and all of the files will be extracted into the Target
Directory.
Specify the drive/dir you want to unzip the files to (Target Directory):
If you specify a directory that doesn't exist, The UnZip Shell
will make sure you want to create it. NOTE: UnZip Shell will only
create a directory one level deep, and it can't create drives that
don't exist<g>.
Use the "Find" button to search/create directories:
Note when using the "Create directory" option, the directory is
created as a subdirectory under the directory shown at the top. If
you create a directory, and precede it with \, it will be created
below the root directory on the current drive. Simarily, if you
precede the directory name with a ..\, it will be created on
directory up from the current directory. In any case, the new
directory will be shown in the listing, and you can change to it
by double clicking on it.
Enable Multiple Selection:
By selecting this option, you can select which files are extracted
in the archive. Note that when this option is CHECKED, you cannot
view items in the list by double clicking on them.
File viewer/Start object:
Select file viewer to use the File viewer specified in the
"Defaults". Select Start object to use object association.
Viewing the ZIP comment:
If the currently loaded ZIP file has an embedded comment, the
COMMENT button will be enabled. Click on this button to view the
comment. After you are done viewing the comment, click the DONE
button on the comment viewing window.
Opening another ZIP file:
If you click the "File Open..." button, you can select another
file to unzip.
Drag-and-Drop:
You can also drag a ZIP file from the WPS onto The UnZip Shell
to open it. The list that displays the file contents is a good
target for Drag-and-Drop, or any other part of the window that
doesn't have a control on it.
Setup the program configuration:
If you click the "SETUP" button, you will be presented with a
dialog window that contains the program startup defaults. From
this window, select the settings you want the program to start up
with every time.
You can also select a different editor or file viewer to use when
you select a file to view. If the program you choose to view files
is not in your path, be sure to include the fully qualified path
name to the program (ie: C:\DOS\EDIT.COM) (like an OS/2 user is
going to use DOS EDIT!). Also, be sure to include the extension of
the program (ie: EPM.EXE) (that's more like it!).
The registered version of The UnZip Shell allows you to use the
object association feature of the WPS. To do so, select this
option while in the setup dialog.
Use Button 2 to view a popup menu:
Pressing Mouse Button 2 brings up a popup menu with numerous
options. If you pressing Button 2 on the list of files, it will
select the file under the cursor, and then bring up the popup
menu.
Actions after unzipping:
Create a WPS Shadow of the dir the files are being placed in:
This is the default setting. Click the checkbox off if you don't
want this to happen. As the object that is created is a shadow, it
can be safely deleted without affecting the actual directory. If
you delete the file objects however, the files will be deleted.
Create an OS/2 session:
Select this option if you want The UnZip Shell to start an OS/2
command line window for you after unzipping the files. The session
will be started and the active drive/dir will be the one that the
unzipped files were placed in.
Close UnZip Shell:
Selects whether or not The UnZip Shell exits after unzipping. Note
that only the REGISTERED VERSION allows you to change this
setting.
How to exit:
Select "Extract xxx":
If you select "Extract xxx", The UnZip Shell will start it's
thread that unzips files (go OS/2!). If you selected "Close
UnZip Shell", the program will exit.
Select "CANCEL":
If you select "CANCEL", The UnZip Shell will confirm that you want
to cancel.
Exit with the "System Menu":
If you select "Close" from the System Menu (upper left corner),
The UnZip Shell will close immediately without confirming you want
to quit and without unzipping any files. The SHAREWARE version
will still display it's reminder window (only $12 to register!).
IMPORTANT!!!:
Regardless of how you exit the program, The UnZip shell will
shutdown any viewers or programs that you started while viewing a
files contents, and delete the temporary files that it created.
---------------------------------------------------------
Contacting the author:
---------------------------------------------------------
John Wagner is available on the net as: jwag@together.net
There is no support available for The UnZip Shell. I will answer any
questions about it as time permits.
History:
- 1/25/94 Initial Release
v1.0 - (v1.0s Shareware and v1.0r Registered)
- 12/1/94
v1.1 - (v1.1s Shareware and v1.1r Registered)
No longer requires seperate UNZIP.EXE program
Added "COMMENT" button to view comments in ZIP file
Changed "OPEN" button text to "FILE OPEN"
Change "OK" button text to "Extract"
Added progress window while unzipping files
Added drive and directory picker
Added mutliple select option
Added Drag & Drop
The UnZip Shell is now distributed by Power Programming, Inc.
- 5/15/95
v1.2 - (v1.2s Shareware and v1.2r Registered)
Made it optional to close program after un-archiving
Added "View selected/Start selected" button Changed the text of
the "Setup" button to "Defaults"
Added "File viewer" and "Start object" radio buttons so you can
switch between the two on the fly instead of going to the defaults
dialog
Added "Use new settings in current shell" checkbox to defaults
dialog
Now the defaults dialog uses the current settings when editing
defaults
Multiple selection can now be a default
Changed the "Create shadow of Target Directory" to "Open view of
Target Directory". No longer creates a shadow, but just opens a
view
Added a "Now" button to both the "Open view..." and "Create
Command line Shell" options so those options may be used while the
program is running.
Now uses the COMSPEC variable for opening a Command Line shell
Added a "Create directory" button in the "Find directory" dialog
Added Button2 popup menu
Switched to Borland C++ version 2.0 as of this version.
- 2/15/96
v1.3 - (v1.3r Freeware)
Released program as freeware. There will be no more updates to the
software and there is no support available. There will be no bug-fixes,
or updates made to this software. It is released as-is, for free, and
all sales are final.
Thanks:
First off, Many, many thanks to Mr. Marcus de Geus for his
wonderful suggestions. Quite a few of the additional features
added to version 1.2 were his.
Thanks to IBM for Warp! I thought v2.x of OS/2 was great, Warp is
even better!
Thanks to Steve Lumos, Nelson Grandjean and Bob Falbo for beta
testing since the programs inception. Also thanks to Marcus de
Geus for beta testing version 1.2.