home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 35 Internet / 35-Internet.zip / webxlist.zip / qwiklist.cmd next >
OS/2 REXX Batch file  |  1996-06-08  |  4KB  |  114 lines

  1. /* QWIKLIST.CMD Tested with WebExplorer 1.03B */
  2.  
  3.   parse arg infile                     /* The EXPLORE.INI path and name   */
  4.   outfile = 'qwiklist.bm'              /* The resulting bookmark file     */
  5.   eqsign = x2c('3D')
  6.   
  7.   topline = "Quick List" d2c(6) "darkcyan.ico"
  8.   call lineout outfile, topline
  9.   
  10.   do while lines(infile) > 0           /* EXPLORE.INI is plain text       */
  11.      ln = linein(infile)
  12.         if left(strip(translate(ln)),10) = "QUICKLIST=" then do    
  13.            title = strip(substr(ln,11))
  14.            url = linein(infile)
  15.            outline = strip(title) d2c(4) ,
  16.                      url d2c(4) ,
  17.                      left(date('U'),5) d2c(4) ,
  18.                      time('C') d2c(4)
  19.            call lineout outfile, outline
  20.         end  /* Do */
  21.   end /* do */
  22.   
  23.   return
  24.   exit
  25.  
  26. /* Instructions:
  27. ----------------
  28.  
  29. The most often asked question about WebExtra is:  "Can I convert my
  30. WebExplore QuickList to a bookmark file?  Yes -- in less than five minutes.
  31. You can then organize your entries among different books within WebExtra
  32. or, externally, with a text editor.
  33.  
  34. This is a simple REXX script for converting a WebExplorer
  35. QuickList to a WebExtra bookmark file.  You do not need to know anything
  36. about REXX to use this utility.  Just follow the instructions below.
  37.  
  38. Instructions for editing bookmark files and archive lists with any simple
  39. text editor are included.
  40.  
  41.  
  42.      1. Close WebExtra
  43.  
  44.      2. Copy this REXX Program (qwiklist.cmd) into your WebExtra books
  45.         directory.  For example:
  46.  
  47.            COPY QWIKBOOK.CMD E:\WEBEXTRA\BOOKS\QWIKBOOK.CMD
  48.  
  49.      3. Find your EXPLORE.INI file.  You can use the directory search
  50.         command to find the file.  For example, from the root directory of a
  51.         drive enter:
  52.       
  53.            DIR EXPLORE.INI /S
  54.  
  55.      4. Run QWIKLIST as follows with the full path of EXPLORE.INI:
  56.  
  57.            QWIKLIST C:\MPTN\ETC\EXPLORE.INI
  58.  
  59.                    The result is a file called QWIKLIST.BM
  60.                    ---------------------------------------
  61.  
  62.      5. Launch WebExtra. Open the Quick List Book and select a URL. The
  63.         page will be loaded by the WebExplorer.
  64.  
  65.  
  66. Editing WebExtra Book Files:
  67. ----------------------------
  68.  
  69. Entries in the bookmark files are a result of selecting a bookmark icon and 
  70. double-clicking on it when viewing a page. You can also add a bookmark after
  71. the fact from the jump list or from one of the monthly archive lists of 
  72. URL's. You can also use WebExtra functions to move and copy entries between 
  73. bookmark files.
  74.  
  75. Because the format of bookmark files is so simple, many people have 
  76. discovered that they can edit and reorganize bookmark files with a text 
  77. editor. Here is what you need to know.
  78.  
  79.      A. The first line is a very brief description of the book followed by a
  80.         spade symbol and the name of an icon.  The spade symbol can be typed
  81.         into a line by holding down the Alt key and typing in 0 0 6 on the
  82.         numeric keypad.  The name of the icon for the book can be one of the
  83.         icons in the WebExtra icons directory or it can a full path to any
  84.         icon on your system.
  85.  
  86.      B. Entries for URL's are simply the name of a web page (or any text you
  87.         prefer), a diamond symbol, the exact URL, another diamond, the date
  88.         in MM/DD format, a third diamond, the time in HH:MMxm format, and a
  89.         final diamond.  The diamond can be entered by holding down the Alt
  90.         key and typing in 0 0 4 on the numberic keypad.
  91.  
  92.      C. Bookmark files can have any name but they must have a file extension
  93.         of BM. For example: MYBOOK.BM
  94.  
  95. The following is an example of a WebExtra bookmark file.
  96.  
  97. Quick List  darkcyan.ico
  98. InnoVal Systems Solutions  http://www.aescon.com/innoval  06/07  7:27pm 
  99. Release 2.0 Beta  http://www.aescon.com/innoval/prodplan  06/07  7:27pm 
  100. Indelible Blue  http://www.indelible-blue.com/ib  06/07  7:27pm 
  101. OS/2 e-Zine!  http://www.haligonian.com/os2  06/07  7:27pm 
  102.  
  103. For more information about WebExtra see http://www.aescon.com/innoval
  104. ---------------------------------------------------------------------
  105.  
  106. Dan Porter
  107. InnoVal Systems Solutions, Inc.
  108. innoval@tiac.net or innoval@ibm.net
  109. (914) 835-3838
  110.  
  111. ---------------------------------------------------------------------
  112.  
  113. */
  114.