home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 35 Internet / 35-Internet.zip / webautoz.zip / readme.txt next >
Text File  |  1998-02-21  |  5KB  |  133 lines

  1. webautoz.cmd - Web Browser Auto-UnZip
  2. Written by Timur Tabi
  3. timur@io.com
  4. http://www.io.com/~timur/index.html
  5.  
  6. This REXX script will take any file you download, create a directory
  7. of the same name, and if it's an archive file (zip, gz, tar, etc),
  8. it extracts the contents into that directory.  Then it opens a window of
  9. the directory on the desktop. In other words, you can download a
  10. zip file via a web browser, unzip it, and examine or use the contents
  11. without ever using the command line.
  12.  
  13. Sorry, but there's no fancy installation - you'll have to do it by
  14. hand.  I guess it's ironic that you need to use the command-line
  15. to install a program whose sole purpose is to avoid the command-line.
  16.  
  17. WHAT'S NEW:
  18.  
  19. It now handles files of any type.  Files that can be extracted are
  20. extracted, other files are simply copied as-is.  This works great
  21. for .EXE files.
  22.  
  23. Also, this version doesn't copy the file to the download directory
  24. anymore - it just uses whatever copy is in the TEMP directory.
  25. This means you no longer have the option to not delete the downloaded
  26. file, but it is now faster and uses less disk space.
  27.  
  28. PROGRAM INSTALLATION
  29.  
  30. 1. Copy the program to where you normally keep REXX .CMD files or
  31. other utilities.  It can be on the root drive (C:\), in the Netscape
  32. directory (\NETSCAPE), in a directory where you keep utilities,
  33. such as H:\UTIL2 in my case, or anywhere else.  It does NOT have to be
  34. in a directory specified in your PATH variable.
  35.  
  36. 2. Using a text editor, edit webautoz.cmd.  Go to line #5, it looks
  37. like this:
  38.  
  39.         /* call directory 'h:\dl' */
  40.  
  41. Generally speaking, you probably want to keep all your download files
  42. into a directory set aside for this purpose.  In my case, that directory
  43. is H:\DL.  If you don't have such a directory, I recommend you create
  44. one - it keeps your hard drive less cluttered.
  45.  
  46. 3. So if you don't have such a directory, create it now.  Give it
  47. whatever name you like.
  48.  
  49. 4. Change the 'h:\dl' to whatever your directory is called.  For instance,
  50. if you created a directory called "STUFF" on the D: drive, it would
  51. now read:
  52.  
  53.         /* call directory 'd:\stuff' */
  54.  
  55. 5. Remove the /* and the */.  It should now read something like:
  56.  
  57.         call directory 'd:\stuff'
  58.  
  59. 6. Now, follow the instructions for whichever web browser you use.
  60. I apologize for the instructions, they're not exactly that clear
  61. when it comes to specifying which MIME types to update.
  62.  
  63.  
  64. NETSCAPE NAVIGATOR FOR OS/2 SETUP
  65.  
  66. 1. Start Netscape Navigator for OS/2.  Under the Options menu, select
  67. "General Preferences"
  68.  
  69. 2. Click on the "Helpers" tab.
  70.  
  71. 3. Here is where you make an association between the *.ZIP files you
  72. download and webautoz.cmd.  Unfortunately, there are two ways a ZIP
  73. file can be identified, so you need to change two entries.  First,
  74. look for an file type labelled "application/zip".  If there isn't
  75. one, make one by pressing the "Create New Type" button, and entering
  76. "application" for the Mime Type and "zip" for the Mime Sub Type. Then
  77. press Okay
  78.  
  79. 4. Now you have created and/or located the application/zip type.
  80. Under the "Action" section, select "Launch the Application".  The
  81. press the "Browse" button and look for webautoz.cmd.  Select it,
  82. and then press Ok.
  83.  
  84. 5. Now do the same thing for File type "application/x-zip-compressed".
  85. This is the preferred MIME type for zip files, so in addition to
  86. configuring to launch webautoz.cmd, it should also have the word
  87. "zip" specified for the "File Extensions".
  88.  
  89. 6. Repeat this for other file types, like application/x-gzip and
  90. application/octet-stream.
  91.  
  92. 7. You're all done setting up the File types.  Press the button labeled
  93. "Ok".
  94.  
  95. WEB EXPLORER SETUP
  96.  
  97. 1. From the Configure menu, select "Viewers..."
  98.  
  99. 2. Click on the small arrow to the right of "Type" and locate the type
  100. called "Zip PkZip format".
  101.  
  102. 3. Press the "Browse..." button.  Locate and select webautoz.cmd.  Once
  103. it's selected, press the button labelled "OK".
  104.  
  105. 4. Do the same for other file types, especially "BIN binary file".
  106.  
  107. 5. You're back in the Configure Viewers dialog box.  Press the "OK"
  108. button.
  109.  
  110. USAGE
  111.  
  112. Now, whenever you download a file, it will be handled via webautoz.cmd.
  113. If, for some reason there is a particular file you just want to download
  114. and not have extracted, then you can hold down the Shift key while clicking
  115. on the file (Shift-Click instead of just Click).  Unfortunately, this trick
  116. only works in Navigator.  In WebExplorer, it's all or nothing.
  117.  
  118. Also, WebExplorer does not retain the name of the zip file - it creates
  119. a temporary name.  So if you download PMN100.ZIP, instead of getting
  120. a directory called D:\STUFF\PMN100 (for example), you'll get something
  121. like D:\STUFF\0A00031.  Navigator does not have this problem.
  122.  
  123. And be careful that you don't download a file that you already have,
  124. or that a directory doesn't exist that has the same name as the file
  125. you're downloading.  For instance, if you already have D:\STUFF\PMN100,
  126. and you download PMN100.ZIP, you might get junk in D:\STUFF\PMN100.
  127.  
  128. A great companion utility would be those WPS add-ons that give open
  129. a command line window, set the corresponding directory, right from the
  130. desktop.  These can be found in the /pub/os2/util/shell directory
  131. on hobbes.  An example is cmdhr112.zip.  Between these two apps,
  132. you'll never need to use the "CD" command again!
  133.