home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.os.os2.misc
- Path: sparky!uunet!psinntp!blkbox!rbarnett
- From: rbarnett@blkbox (Rick Barnett)
- Subject: Re: Running ZIP/ZOO/etc from an icon (again!)
- Organization: The Black Box, PO Box 591822 Houston, TX 77259-1822
- Date: Wed, 16 Dec 1992 08:12:37 GMT
- Message-ID: <1992Dec16.081237.22834@blkbox>
- References: <1992Dec15.061829.9640@sbcs.sunysb.edu> <1992Dec15.063444.15320@midway.uchicago.edu> <BzBB65.2KA@watserv1.uwaterloo.ca>
- Lines: 41
-
-
- >In article <1992Dec15.063444.15320@midway.uchicago.edu> pynq@midway.uchicago.edu writes:
- >>What is the 50 word synopsis of whether it is possible to run any of the
- >>compression programs effectively from an icon? Is there a way to click
- >>on an icon and have it prompt you at runtime for the program parameters?
- >>
-
- > What I do is drag a program template onto the desktop, and in the 'Program
- >and Filename' section, type in the drive:path\filename.ext you wish to
- >run. Then in the 'Parameters' line, type in '[ ]' (there is a space
- >between the two brackets). The brackets tell OS/2 to ask for input. This
- >should do what you want.
-
- > However, I have a much more elegant solution. Create a program
- >template, like above, but in the 'Parameters' line enter '%*'. Now,
- >instead of double-clicking on the icon, just drag an icon that you want
- >uncompressed onto the just-created program template, and watch it
- >un-compress automatically. The '%*' entered in the option line tells OS/2
- >to send the full filename and path to the program, rather than asking for
- >something. Also, for added elegance, open up the settings for the
- >just-created program template and click on full-screen and open minimized.
- >This way when the program runs, it will not be visible at all, just your
- >uncompressed files will appear in the directory from where you dragged it
- >from.
-
-
- > For what it worth, I wrote a DOS application that acts as a front end
- >for all the uncompressors. It parses the filename, looks at the extension,
- >determines what uncompressor to run, creates a sub-directory with the name
- >of the file to uncompress, and uncompresses it into that folder. It then
- >'CD's into the folder, so that under DOS, you type 'UNZIP FILENAME.EXT'
- >and you will be in the subdirectory 'FILENAME' when the unzip process is
- >complete. From OS/2 I have a program object which references this UNZIP
-
- I have a simpler approach. Since almost all the archives I get use the new
- 32-bit ZIP, I just put UNZIP.EXE in my OS/2 root directory and use *.ZIP in
- the Association page of the UNZIP settings. When I double-click on the
- archived file, an OS/2 window opens up and shows the uncompress messages.
-
- By unchecking the "Close Window on Exit" box of the UNZIP settings, it will
- stay up after the uncompress process is finished.
-