home *** CD-ROM | disk | FTP | other *** search
/ CP/M / CPM_CDROM.iso / cpminfo / cpm-cc04.art < prev    next >
Text File  |  1994-07-13  |  14KB  |  266 lines

  1.  
  2. ==============================================================================
  3. [   THE KAY*FOG RBBS  |  CPM-CC04.ART  |  posted 01/18/86  |  263 lines 14k  ]
  4.  
  5.           The CP/M Connection                   Originally published in    
  6.                   by                               Computer Currents       
  7.              Ted Silveira                           2550 9th Street        
  8.   (copyright and all rights reserved)             Berkeley, CA  94710      
  9.  
  10.  
  11.                                 April 23, 1985
  12.  
  13.                                BASIC UTILITIES
  14.  
  15.      All computer users have to spend part of their time housekeeping--
  16. checking disk space, formatting new disks, cleaning out dead files, backing 
  17. up good ones, moving others from disk to disk.  Fortunately, there are some 
  18. public domain CP/M programs that make these jobs easier.  These programs 
  19. are basic utilities that no one, from novice to expert, should be without.  
  20. (In fact, they were among the first programs to appear in the MS-DOS public 
  21. domain after the IBM PC came out.  People who migrated from CP/M to IBM 
  22. just refused to give up these timesavers they'd gotten so used to.)
  23.  
  24.  
  25. FIVE BASIC UTILITIES
  26.  
  27.      SD98 (Super Directory, version 9.8)   SD gets the vote as my "most 
  28. used" program.  It's a small program with a number of options, but its main 
  29. function is simple.  It shows the directory of a disk, with the files 
  30. sorted into alphabetical order, and gives the size of each file, the free 
  31. space left on the disk, the space used on the disk, and the number of files 
  32. (see Listing 1 for an example).  
  33.  
  34.      With one command, SD answers the three most common questions:  Where's 
  35. that file?  How big is it?  How much space is left?  Until I got SD, I had 
  36. to use CP/M's DIR to answer the first question and STAT to answer the 
  37. second and third.  But DIR doesn't alphabetize its display of files, and 
  38. STAT is 6K and slow, with a display that's hard to read if your disk has 
  39. many files.  SD is fast and small (2K, if you reassemble to eliminate 
  40. unneeded options, about 4K otherwise).  And it has a very clean display, 
  41. which you can even modify to list files vertically, in four columns, rather 
  42. than horizontally as in Listing 1.  Good-bye STAT and DIR.  I now put SD on 
  43. all my program disks.
  44.  
  45.      SD also has some special options.  It can show every disk and user 
  46. area in one command.  It can pause the display after every screenful.  It 
  47. can show system files or not.  It can adjust the width of its screen 
  48. display.  And it can write its output into a disk file.  People with hard 
  49. disks will find the first two useful, Osborne owners the third, and almost 
  50. everyone the last.
  51.  
  52.      You'll also find other directory programs in the public domain: D, S, 
  53. XDIR, and others, some of which are SD masquerading under another name.  
  54. All will do the job for most people.  People who have hard disks will 
  55. probably want the original SD.  SD98 is the latest, but I've used versions 
  56. back past SD78--they work fine.
  57.  
  58.      UNERA30 (UNERAse, version 3.0)   UNERASE is my least-used program, but 
  59. I put it on every program disk, too.  As its name suggests, UNERASE 
  60. recovers erased files.  If you've ever typed ERA *.BAS when you meant to 
  61. type ERA *.BAK, you'll understand the peace of mind this program gives.  
  62. It's a life-saver.  
  63.  
  64.      When you first erase a file, it doesn't get wiped off your disk.  
  65. Instead, CP/M goes to the disk directory and marks the file as erased, 
  66. making the disk space the file occupied available for use.  UNERASE simply 
  67. goes to the disk directory and marks the file active again.  Your file will 
  68. be recovered, safe and sound, as long nothing else has been written to that 
  69. disk.  If something has been written to the disk in the meantime, there's a 
  70. very good chance that it has overwritten your erased file.  The time to use 
  71. UNERASE is immediately after an accidental erasure.
  72.  
  73.      UNERASE only takes up 2K and is worth many times its weight in gold.  
  74. UNERA30 is the latest version; I've also used earlier versions 
  75. successfully.
  76.  
  77.      FBAD60 (Find BAD sectors, version 6.0)   FINDBAD is another insurance 
  78. program.  It checks a formatted disk for bad sectors and "locks out" any it 
  79. finds by writing them into a special file named [UNUSED].BAD.  As long as 
  80. the bad sectors are in this file, CP/M won't try to use them.
  81.  
  82.      I use FINDBAD to check every disk after formatting.  Though formatting 
  83. programs catch most bad sector problems, FINDBAD has found a few that have 
  84. slipped through (saving me certain grief).  I also use FINDBAD periodically 
  85. on any disk that is aging or behaving suspiciously.  Disks do deteriorate, 
  86. and though disk errors can happen for various reasons--such as a disk not 
  87. being seated properly in the drive--I always like to check.  FINDBAD's disk 
  88. testing is non-destructive:  you can test a disk without damaging any files 
  89. on it.
  90.  
  91.      FBAD60 is the latest version.  The earlier versions I've tried have 
  92. worked well, but FBAD60 gives you a choice of either checking another disk 
  93. or exiting to CP/M when it's done, a good feature if you're checking 
  94. several disks.
  95.  
  96.      NSWP207 (New SWeeP, version 2.07)   If SD is the most used program on 
  97. my disks, NSWP is the most useful.  It's my major housekeeping tool, and 
  98. I'd hate to be without it.
  99.  
  100.      If you take a look at the NSWP menu shown in Listing 2, you'll get an 
  101. idea what it can do.  It does not slice, dice, or julienne, but it does 
  102. nearly everything else.  You can copy, rename, and delete individual files.  
  103. You can tag files for mass copying or deletion and rename groups of files 
  104. using wildcards (renaming *.OBJ to *.COM, for example).  You can squeeze 
  105. files into a special compressed (but generally unreadable form) for storage 
  106. and then unsqueeze them again.  You can check disk space, set file 
  107. attributes (like read-only or system), send files to the printer, and view 
  108. text files on the screen, even squeezed ones.  Just try getting PIP to do 
  109. all that.
  110.  
  111.      Perhaps best of all, once NSWP is running, you can remove disks and 
  112. insert new ones as often as you want; you never have to exit the program 
  113. just to hit ^C.  This feature alone makes NSWP indispensable.  When I 
  114. changed my computer from single-sided to double-sided drives, I spent a 
  115. long afternoon with NSWP transferring all my files onto new disks.  Without 
  116. NSWP, I would have been barking mad long before I finished.
  117.  
  118.      As you can see in Listing 2, NSWP presents the files on a disk one by 
  119. one in a vertical column, in alphabetical order.  You can act on the file 
  120. your cursor is next to and can move either up or down the list.  The menu 
  121. scrolls off the screen as the list grows, of course, but you can get it 
  122. back at any time by typing a question mark (?).  You can back out of any 
  123. command up until the last moment, and NSWP always asks for verification 
  124. before deleting files.
  125.  
  126.      NSWP207 is the latest version.  It takes up 12K on your disks and is 
  127. worth every bit; you'll never go back to PIP once you've used it.  There 
  128. are similar programs you may run across, but most don't bear comparison.  
  129. WASH is older than NSWP and not as flexible.  SWEEP is very similar to NSWP 
  130. (which was modeled on it) but is slower and much bigger (28K or so).  
  131.  
  132.      The only other program you may want to consider is DISK7, which shows 
  133. up in two versions, DISK76 and DISK77B (the differences are minor).  DISK7 
  134. doesn't have NSWP's squeeze/unsqueeze, file attribute, mass rename, or mass 
  135. delete commands, and some of its other commands are not as flexible.  But 
  136. it has all of NSWP's most used functions, it's equally fast, and it takes 
  137. up only 4K on your disk.  If your disks are crammed full, DISK7 may be for 
  138. you.  
  139.  
  140.  
  141. THREE MORE PROGRAMS FOR SERIOUS COLLECTORS   
  142.  
  143.      If you get serious about collecting public domain software, there are 
  144. three more programs you'll want in your basic kit.
  145.  
  146.      SQ111 (SQueeze, version 1.11),  USQ120 (UnSQueeze, version 1.20)   These 
  147. two make a set.  SQ squeezes a file into a special compressed form, which 
  148. may be as little as 70-75% of its original size.  There are programs, like 
  149. NSWP, that will let you view squeezed text files, but you can't edit them 
  150. or do anything else useful--they're mainly for storage.
  151.  
  152.      USQ, as you've guessed, unsqueezes a squeezed file, returning it to 
  153. its original form.  USQ and SQ use an error-checking system to make sure 
  154. that a newly-unsqueezed file is identical to the original unsqueezed file.  
  155. And both allow you to copy a file to another disk while you squeeze or 
  156. unsqueeze it.
  157.  
  158.      You need to be able to squeeze and unsqueeze files because all RCP/Ms 
  159. (Remote CP/M bulletin board systems) and even some users' groups squeeze 
  160. many of their files to save space.  To use these files, you'll have to 
  161. unsqueeze them, and you'll probably want to squeeze your own files for 
  162. backup storage.  NSWP can handle these chores, of course, but at times, SQ 
  163. and USQ are handier.  For one thing, you can use them with CP/M's SUBMIT 
  164. program to do batch processing; you can't do that with NSWP.
  165.  
  166.      Try to get the latest versions of these programs, SQ111 and USQ120.  
  167. These versions were written in assembly language, so they're much smaller 
  168. and faster than earlier versions, which were written in the C language.  
  169. You may also find these programs under their original names, NSQ111 (for 
  170. New SQueeze) and NUSQ120 (for New UnSQueeze).  The RCP/M or users' group 
  171. where you get them should also have a file called SQUEEZE.DOC, SQ/USQ.DOC, 
  172. or something similar, which explains the ins and outs of squeezed files.
  173.  
  174.      DE-LBR (DE-LiBRary)  Along with squeezed files, you'll also need to 
  175. be able to handle library files, which have the filetype LBR and are used 
  176. heavily on RCP/Ms for convenience and compactness.  A LBR file is really 
  177. several smaller files gathered together in a collection that CP/M treats as 
  178. a single large file.  To use the LBR file, you must be able to extract all 
  179. the member files from the library; you can't do much with them until you 
  180. do.
  181.  
  182.      The simplest way to deal with LBR files is to use a program called DE-
  183. LBR, which does only one thing--extract member files from a LBR file with 
  184. little fuss.  Two other programs, NULU11 and LU310, let you build and 
  185. rearrange LBR files as well as extract members, but most people have no 
  186. reason to build LBR files, though they can be useful on a hard disk.  If 
  187. you want to build libraries, NULU11 is the best.  For most people, DE-LBR 
  188. is plenty.
  189.  
  190.  
  191. WHERE TO GET THESE PROGRAMS 
  192.  
  193.      All these programs are available in some version on every RCP/M I've 
  194. ever seen; they're basic stock.  They'll also be available through any 
  195. users' group that has a software library, though the RCP/Ms are more likely 
  196. to have the latest versions.
  197.  
  198.      If you don't have a modem to call the RCP/Ms, and you don't belong to 
  199. a users' group or know anyone who does, then scratch together $20 or so and 
  200. join either FOG or PicoNet, both of which have large public domain 
  201. libraries available in a variety of disk formats.  You can also look in the 
  202. "Networks and User Groups" section in  Computer Currents  for groups catering 
  203. to specific machines, like BAMDUA for Morrows and BAKUP for Kaypros.  
  204.  
  205.      Those of you who also have MS-DOS computers will find versions of all 
  206. these programs, under similar names, in the MS-DOS public domain.
  207.  
  208. FOG                                     PicoNet                  
  209. P.O. Box 3474                           P.O. Box 391566          
  210. Daly City, CA  94015                    Mountain View, CA  94039 
  211. (415) 755-4140                          (408) 847-0867           
  212.  
  213.  
  214. Listing 1 (Caption: "Typical display from SD showing sorted list of files 
  215. and file sizes, along with number of files, space used, and free space on 
  216. disk.")
  217.  
  218. -WS    .110   2K | ABBREVS .TXT   2K | BR    .COM   2K | CAPSEX  .TXT   2K
  219. CLEANUP .COM  14K | CLEANUP .OPT   2K | FIXKEY    .COM  20K | FOGINDEX.COM  12K
  220. HRDSFT    .COM   2K | MAGE31  .COM   2K | MAINDICT.CMP 138K | MARKFIX .COM   4K
  221. NAMES    .CMP   6K | NOTE    .FIL   2K | NSWP    .COM  12K | PASSIVE .TXT   2K
  222. PATTERNS.TXT  16K | PHRASE  .COM   6K | PHRASE    .OPT   2K | PRINT   .FIL   2K
  223. REVIEW    .COM   6K | SD        .COM   2K | SMARTKEY.COM   6K | SPELL   .COM   4K
  224. SV    .COM   2K | TW        .COM   4K | TWDFAULT.CMP   2K | UNERASE .COM   2K
  225. UPDICT    .CMP  12K | WC        .COM   2K | WS    .COM  16K | WS2     .DEF   2K
  226. WSMSGS    .OVR  28K | WSOVLY1 .OVR  34K
  227.  
  228.      >>> drive:A  user:0  files:34     space used:370k    (14k free) <<<
  229.  
  230. Listing 2 (Caption: "Typical display from NSWP207, showing menu of 
  231. functions and partial list of files on disk.")
  232.  
  233. NSWEEP     -  Version 2.07     07/17/1984
  234.     (c) Dave Rand, 1983, 1984
  235.         Edmonton, Alberta
  236.  
  237. A - Retag files     | Q - Squeeze/Unsqueeze tagged files
  238. B - Back one file    | R - Rename file(s)
  239. C - Copy file        | S - Check remaining space
  240. D - Delete file     | T - Tag file for mass
  241. E - Erase T/U files    | U - Untag file
  242. F - Find file        | V - View file
  243. L - Log new disk/user    | W - Wildcard tag of files
  244. M - Mass file copy    | Y - Set file status.
  245. P - Print file        | ? - Display this help
  246. X - Exit to CP/M    | cr, sp - Forward one file
  247.  
  248.  370K in   34 files.    14K free.
  249.   Tagged files =    0K (   0K).
  250.  
  251.    1. A0: -WS      .110      2K :
  252.    2. A0: ABBREVS .TXT      2K :
  253.    3. A0: BR      .COM      2K :
  254.    4. A0: CAPSEX  .TXT      2K :
  255.    5. A0: CLEANUP .COM     14K :
  256.    6. A0: CLEANUP .OPT      2K :
  257.  
  258. ------------------------------------------------------------------------------
  259.       Ted Silveira is a freelance writer and contributing editor to several
  260.    computer-oriented publications.  He appreciates suggestions or feedback
  261.    and can be reached through the KAY*FOG RBBS (415)285-2687 and CompuServe
  262.    (72135,1447) or by mail to 2756 Mattison Lane, Santa Cruz, CA 95065.
  263.  
  264. -------------------------  End of CPM-CC04.ART Text  -------------------------
  265.  
  266.