home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / comp / os / os2 / misc / 37496 < prev    next >
Encoding:
Internet Message Format  |  1992-11-24  |  3.6 KB

  1. Path: sparky!uunet!munnari.oz.au!ariel.ucs.unimelb.EDU.AU!ucsvc.ucs.unimelb.edu.au!lugb!luxury.latrobe.edu.au!cscks
  2. Newsgroups: comp.os.os2.misc
  3. Subject: Re: I guess there is no way to start zip/zoo from Icon
  4. Message-ID: <1992Nov24.010216.12743@lugb.latrobe.edu.au>
  5. From: cscks@luxury.latrobe.edu.au (Kamal Shaker.)
  6. Date: Tue, 24 Nov 1992 01:02:16 GMT
  7. Sender: news@lugb.latrobe.edu.au (USENET News System)
  8. References: <1992Nov16.104315.954@calmasd.prime.com>
  9. Organization: La Trobe University
  10. X-Newsreader: Tin 1.1 PL4
  11. Lines: 87
  12.  
  13. kjb@calmasd.prime.com (Ken Brucker) writes:
  14. : In article <BxrKIM.LJ4@ccu.umanitoba.ca>, umnoor@ccu.umanitoba.ca (Nasir Ahmed Noor) writes:
  15. : > 
  16. : > As these programs require command line parameters and opitons. I was
  17. : > trying to import these onto my desk top to cut short the Path and DPath
  18. : > variables. Is there any PM interface available for any of the archivers?
  19. : > 
  20. : > --nasir
  21. : > umnoor@ccu.umanitoba.ca
  22. : Actually this depends on what you are trying to accomplish.  I've got a
  23. : directory called \download that I use for all my downloaded files that I'm
  24. : going to be checking out.  My standard operation is to then unzip, unzoo, unlh,
  25. : etc to my \tmp directory and check out the package I've received.
  26. : Inside the folder for \download in the drives object I've created objects for
  27. : each of the un-archivers with a working directory of \tmp and the appropriate
  28. : parameter to do the unpack.  So now all that I do is drag the archive file onto
  29. : the appropriate object and away it goes.  Once I take the time to learn a bit
  30. : about REXX I'll make a single script that will use the file extention to tell
  31. : which of the archive packages to use and have a single un-archive object listed
  32. : in my download directory.
  33. : Then it'll be a quick drag and drop for whatever I want to explode.  Actually I
  34. : should probably add an archive view while I'm at it.  :)
  35. : Ken
  36.  
  37. Well this is how I do it... when I've download a whole heap of
  38. stuff.. I just run the following rexx script, which unpacks
  39. archives into thier own dirs... the following took about 2 pages
  40. of basic code to do under dos....
  41.  
  42. --------unp.com---------
  43.  
  44. /* This proc should unzip files into separate directories... */
  45. ARG name
  46. IF STRIP(name,'B') = '' THEN
  47.    DO   
  48.      SAY "Filenames to unpack:"
  49.      PULL name
  50.    END
  51. CALL RxFuncAdd 'SysFileTree','RexxUtil','SysFileTree'
  52. xxx = STRIP(name,'B')
  53. xxx = SysFileTree(name,dir_list,'FO')
  54. DO x = dir_list.0 TO 1 BY -1
  55.  fextn = SUBSTR(dir_list.x,LENGTH(dir_list.x)-2,3)
  56.  fname = SUBSTR(dir_list.x,1,LENGTH(dir_list.x)-4)
  57.  fextn = TRANSLATE(fextn)
  58.  SAY  "Unpacking now.... "
  59.   SELECT
  60.     WHEN fextn = "ZIP" THEN DO
  61.       MD fname
  62.       CD fname
  63.       SAY " Unzipping.... "
  64.       UNZIP fname
  65.       CD ..
  66.     END
  67.     WHEN fextn = "ZOO" THEN DO
  68.       MD fname
  69.       CD fname
  70.       SAY "Unzooing.... "
  71.                     ZOO2 '-e 'fname
  72.                    /* I have zoo2 here coz I still have the DOS zoo... */
  73.       CD ..
  74.     END
  75.     OTHERWISE
  76.       SAY " Unknown file type!!"
  77.       SAY " Only handles .ZIP and .ZOO so far."
  78.     END
  79.   END
  80.   EXIT
  81. ----- end of unp.cmd----------
  82.  
  83. It's not neat, it not fancy... but it works and you
  84. can easily add new extensions... all I ask is if you
  85. use it and improve it... send me a copy...
  86.  
  87.  
  88.  
  89. ------------------------------------------------------------------------------
  90. Kamal Shaker,        | cscks@luxury.latrobe.edu.au or shaker@latcs1.lat.oz.au
  91. Student Vax Cluster, | %SYSTEM-F-EXQUOTA, Alcohol quota exceeded,
  92. La Trobe Uni,        | stomach dumped.
  93. ------------------------------------------------------------------------------
  94. There's enough water on earth to drown the human population 87.6 million times
  95.