home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
High Voltage Shareware
/
high1.zip
/
high1
/
DIR24
/
WUZ10A.ZIP
/
README.WUZ
< prev
next >
Wrap
Text File
|
1993-12-14
|
9KB
|
195 lines
--------------------- Workplace Shell UnZip version 1.0 ---------------------
----------------------- by: scott.maxwell@channel1.com -----------------------
Welcome to WPS UnZip!
Actually, it does more than just unzip. It can also handle ARC, ARJ, LZH,
TAR, Z and ZOO files. You need to have unpackers for each format but then
WPS Unzip will handle the rest. WUZ is already set up to use OS/2 versions
of Zoo 2.1, Info-Zip's Unzip 5.0, UnArj 2.41, LH2 2.14, Gnu Tar and Compress.
If you want to use a different dearchiver or add another archive type, you
may have to make some changes to Wuz.Cmd. See "Adding a New Archive Type" at
the end of this file. The default dearchiver is UnZip if the file extension
is not recognized. I use this to drag-and-drop QWK files when I just want to
look at my bulletins.
To install, just type Inst-WUZ and select a directory for the executable files
from the menu. Then enter the name of the directory where you want temporary
directories to be made. I use E:\Download\Temp. This will copy Wuz.Cmd,
Post-Wuz.Cmd, Wuz.ICO, ZipSplit.Cmd, Open-Dir.Cmd and Kill-Dir.Cmd to the
specified directory and create an icon on the desktop called WPS Unzip which
is associated with *.arc, *.arj, *.lzh, *.tar, *.z, *.zip and *.zoo.
To uninstall, simply rerun Inst-WUZ and answer yes when it asks you if you
want to uninstall.
Now all of your archive files should have a cool zipper icon. If you don't
see the zipper right away, try clicking the right button over the file icon
and it should change.
You can open an archive in one of three ways:
1) Double click on the file icon.
2) Drag the file icon to the WPS Unzip icon
3) Type WUZ <filename> from a command line
WUZ will then create a directory of the same name as the archive in whatever
directory you told it to during the install, in my case E:\Download\Temp.
After creating the directory, WUZ will extract the archive file into it, open
the directory as a folder on the Desktop and open a separate OS/2 window
set to the new directory. This will give you easy access from both the WPS
and the command line. Also, since each archive creates its own extract
directory, you can open as many archives at the same time as you like.
If you are using 4OS2, the command-line window will be opened as local so
it won't use any of your aliases. WUZ needs to do this so it can create
some custom keyboard aliases.
To close the archive, you can type ZClr. ZClr -x will also close the OS/2
window. If you are using 4OS2, you can just type Alt-x. This will delete
all of the files and remove the directory.
NOTE: If you double-click on ZClr.Cmd from the WPS while the command-line
window is still open and in the extract directory, OS/2 will not be
able to remove the extract directory.
If you are using ZIP archives, two other options are available: updating and
refreshing. ZUPDATE will add any new files you have added to
the extract directory to the original archive and optionally remove any files
that you have deleted. For instance, rename Try.Cmd to Wuz.Cmd and do
ZUPDATE and you will be asked if you want to delete Try.Cmd from the archive
and then Wuz.Cmd will be added to the archive. If you are using 4OS2, just
hit Alt-u. ZFRESH will update only those files that already exist in the
archive and have changed in the extract directory. Alt-f for 4OS2 users.
I don't like seeing ZClr.Cmd, ZFresh.Cmd and ZUpdate.Cmd all the time, so I
have hidden them. If you want to unhide them so that you can use them
from the WPS, just comment out the lines in Wuz.Cmd that hide them.
Other Goodies
-------------
This archive also includes Open-Dir.Cmd which opens the specified directory
as a folder on the desktop and Kill-Dir.Cmd which deletes the specified
directory and all of its files. These are pretty useful in their own right.
ZipStrip.Cmd may also be of interest. It compares the files in the current
directory to those in any ZIP file and offers to remove files from the ZIP
that do not exist in the current directory or one of its subdirectories.
This can take a little while. I will probably rewrite this in C++ when
I get a chance.
Things You Might Want to Change
-------------------------------
If you don't want a command-line, you can set NoCommandLine to 1 at the
top of Wuz.Cmd. If you want Wuz to finish unpacking the archive before
opening the folder and starting the command-line, set WaitForUnzip to 1.
If you would rather the command-line always load another program, i.e. a text
file viewer, etc. set FinalCommand to whatever you like in Post-Wuz.Cmd.
It may be better to set WaitForUnzip to 1 in Wuz.Cmd if you do this.
If you don't want to watch the archive being unpacked, you can open the
settings page of WPS Unzip, select Session and set either OS/2 window or
OS/2 full screen and then Start minimized. If you do this and set
NoCommandLine to 1 in Wuz.Cmd, WUZ will only create the folder. For WPS
purists, this is the way to go!
Legalities
----------
Okay, now for the legal stuff. I use these routines constantly and have had
no problems. If you do, let me know. However, I can not be held liable if
anything nasty happens. This software is strictly of the "USE AT YOUR OWN
RISK" variety.
As to cost, what is this worth to you? I would appreciate a $10 or $20 bill
if you think you can swing it. If you make a lot of money and WUZ saves you
tons of time, maybe even $30-$40. However, WUZ will not waste your time and
screen space with "Guilt Trip" messages every time you use it even if you
never give me a dime. Anyhow, if you like WUZ, then at the very least send
me email and tell me so. Any checks should be made out to my mother:
Patricia Maxwell
1587 E. Modesto Ave.
Camarillo, CA 93010
U.S.A.
I'm out of the country right now so sending checks to my Mom is easier.
Comments are welcome. I hope these REXX routines are as useful for you
as they have been for me. I haven't found any easier way to explore
archives. Send comments to me at scott.maxwell@channel1.com.
Coming Soon
-----------
I will probably rewrite ZipStrip in C++ for speed.
Also, I will probably try to figure out a way to add Update and Refresh
choices to the folder menu so that I can hide ZUPDATE.CMD and ZFRESH.CMD.
I should also be releasing my Extended Folder real-soon-now. It will
eventually provide an enhanced icon folder but currently it just adds
Open Parent and Open Command-Line to the object menu of every folder.
I may also use this add Update and Refresh to the object menus of
extract directories.
For Rexx Programmers
--------------------
There are two routines here that you might want to put in your REXX
library. One is Check4OS2 which returns 1 if the current shell is 4OS2
instead of CMD. The other is DIRECTORY which simply makes the standard
DIRECTORY command always append a '\' and accept directory names with a
trailing backslash. The standard DIRECTORY command chokes on trailing
backslashes unless you are specifying the root and it never returns
a name with a trailing backslash unless the current directory is the root.
My routine makes everything a bit more consistent.
One other routine that you might want to check out is GetDriveSpec in Wuz.CMD.
This will take a filename and return FullPath, FullName, Ext and NameOnly.
This can even handle relative paths on different drives without changing
your current directory on any drive.
Adding a New Archive Type
-------------------------
If you want to add a different archiver, here is what you need to do.
Edit Wuz.Cmd and go down to the Extractor.Ext = whatever section.
The following explanation will make a lot more sense if you are looking
at Wuz.Cmd as you read this.
A generic archiver definition consists of the following specifications:
Extractor.<ext> = '<dearchiver>'- where Ext is the actual extension you want
to use and <dearchiver> includes any
necessary switches. You should always
setup your dearchiver to extract subdirec-
tories and automatically overwrite if
possible.
CopyTo.<ext> = Yes/No - Some dearchivers must extract to the same
directory that the archive is in. These
will require that the archive be copied to
the extract directory first. Usually,
however, this will be no.
Update.<ext> = '<archiver>' - This should be your archive command with
switches to update files and work
recursively.
UpdateP.<ext> = '<exclude>' - This is a switch to stick on to the tail
end of the archive command to exclude
ZCLR.CMD, ZUPDATE.CMD and ZFRESH.CMD.
Fresh.<ext> = '<archiver>' - This should be your archive command with
switches to update only those files that
have changed and already exist in the
archive. Don't forget any necessary
switches to work recursively through any
subdirectories.
--------------------- Usenet: scott.maxwell@channel1.com ---------------------