home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #30 / NN_1992_30.iso / spool / comp / os / os2 / misc / 39610 < prev    next >
Encoding:
Text File  |  1992-12-16  |  2.7 KB  |  52 lines

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