home *** CD-ROM | disk | FTP | other *** search
/ CP/M / CPM_CDROM.iso / fog / starter / nsweep.doc < prev    next >
Encoding:
Text File  |  1993-05-06  |  28.0 KB  |  1,057 lines

  1.  
  2.  
  3.  
  4.  
  5.  
  6.  
  7.  
  8.  
  9.  
  10.  
  11.  
  12.  
  13.  
  14.  
  15.  
  16.  
  17.  
  18.  
  19.  
  20.  
  21.  
  22.  
  23.  
  24.  
  25.  
  26.  
  27.  
  28.  
  29.  
  30.  
  31.  
  32.  
  33.            NSWP - A disk maintenance utility.
  34.  
  35.  
  36.                 Dave Rand
  37.                10232 - 160 Street
  38.             Edmonton, Alberta
  39.                  Canada
  40.                  T5P 3E9
  41.  
  42.  
  43.  
  44.  
  45.  
  46.  
  47.  
  48.  
  49.  
  50.  
  51.  
  52.  
  53.  
  54.  
  55.  
  56.  
  57.  
  58.  
  59.  
  60.  
  61.                   - 1 -
  62.  
  63.  
  64.  
  65.  
  66.  
  67. NSWP 2    -   A disk maintenance utility
  68.  
  69.  
  70.  
  71.  
  72.                 I N D E X
  73.  
  74.                      Page
  75. Introduction ........................  3
  76.      Overview of NSWP ...............  4
  77.      Invoking NSWP ..................  5
  78. Single file commands ................  6
  79.      Help ...........................  7
  80.      Forward and Backward ...........  7
  81.      Exiting ........................  8
  82.      Finding a file .................  8
  83.      Viewing and Printing ...........  8
  84.      Deleting a file ................  8
  85.      Copying ........................  9
  86.      Renaming .......................  9
  87.      The Space command .............. 11
  88.      The Log command ................ 11
  89. Introduction to Multifile Commands .. 12
  90.      The Tag command ................ 12
  91.      Wildcard tagging ............... 13
  92.      The Untag command .............. 13
  93.      The Mass copy command .......... 13
  94.      After the mass (Again) ......... 14
  95.      Erasing files .................. 14
  96.      Squeezing and Unsqueezing files. 14
  97.      Setting file status ............ 15
  98. Epilogue ............................ 16
  99. Credits ............................. 16
  100. Contributions ....................... 16
  101.  
  102.  
  103.  
  104.  
  105.  
  106.  
  107.  
  108.  
  109.  
  110.  
  111.  
  112.  
  113.  
  114.  
  115.  
  116.  
  117.  
  118.  
  119.  
  120.  
  121.  
  122.  
  123.  
  124.  
  125.  
  126.  
  127.                  - 2 -
  128.  
  129.  
  130.  
  131.  
  132.  
  133. NSWP 2    -   A disk maintenance utility
  134.  
  135.  
  136. Introduction
  137.  
  138.      NSWP is a new disk utility than can replace many of the more
  139.  
  140. common utilities  that are used, such as DISK7, PIP, PRINT, PROT,
  141. SQ, STAT, SWEEP, TYPE, USQ and others.    In only 12K of disk space
  142. it replaces over 100K of utilities!
  143.  
  144.      NSWP is written entirely in assembly language,  and will run
  145. on any CP/M 2.x, 3.x or MP/M based system with no changes.  Since
  146. it is coded in 8080 assembler,    any 8080,  8085 or Z80 compatible
  147. processor will work.  Note that this program WILL NOT run on CP/M
  148. 1.4.
  149.  
  150.      When  NSWP  was  conceived,  the dominant file  utility  was
  151. SWEEP,    and thus NSWP is syntax compatible with SWEEP,    but  with
  152. many  extensions.  This  allows  you to directly rename  NSWP  to
  153. SWEEP, if you so desire, with no retraining period.
  154.  
  155.      I hope that you enjoy  this program,  and use it  well.  Any
  156. problems, or suggestions may be directed to myself at the address
  157. on the first page, or on one of the following RCP/Ms:
  158.  
  159. Edmonton RCP/M - (403) 454-6093 (300 or 1200 baud)
  160. Stadium RCP/M  - (403) 479-3450 (300 baud only)
  161.  
  162. or voice at:
  163. (403) 484-4114
  164.  
  165.              Disclaimer and warning
  166.      While this program has been tested on many systems,  I  will
  167. have  no  liability  or responsibilty to the user  or  any  other
  168. person    or entity with respect to any liability,  loss or  damage
  169. caused,  or  alledged to be caused directly or indirectly by this
  170. program,  including,  but  not limited to,  any  interruption  of
  171. service,  loss of business, anticipatory profits or consequential
  172. damages resulting from the use of this program.
  173.  
  174.      Furthermore,  although this program has been placed into the
  175. public domain,    I retain all copyrights to this program,  both in
  176. the U.S.A and in Canada,  and pursuant to this,  this program MAY
  177. NOT  BE  SOLD BY ANY PARTY unless specifically authorized by  the
  178. author,  Dave Rand,  in writing, previous to the first copy being
  179. sold.  As  well,  this program MAY NOT BE INCLUDED IN  ANY  OTHER
  180. PACKAGE FOR SALE,  even if this program is indicated as being 'in
  181. the public domain'. All of the above applies to both the original
  182. as  well  as derived,  or modified copies of  the  original.  Any
  183. modified  copies  of  this program MUST NOT  have  the    copyright
  184. notice violated, changed or altered.
  185.  
  186.      Please report any copyright violations to the author, at one
  187. of the above telephone numbers.  Thank you.
  188.  
  189.  
  190.  
  191.  
  192.  
  193.  
  194.                  - 3 -
  195.  
  196.  
  197.  
  198.  
  199.  
  200. NSWP 2    -   A disk maintenance utility
  201.  
  202.  
  203.               NSWP Overview
  204.  
  205.      NSWP is a directory and file manipulation program.  With it,
  206. you can copy,  delete,    rename, unsqueeze and squeeze files.  The
  207. documentation  following  is  split into two  major  sections:    A
  208. tutorial  for the inexperienced,  and a  reference  section.  The
  209. reference  normally will be used in conjunction with the  program
  210. to  answer specific questions regarding NSWP.  The tutorial is    a
  211. broad  coverage  of  all of the functions,  and  should  be  read
  212. through at least once.
  213.  
  214.      The most important thing to remember when using NSWP is that
  215. it  provides a list of your files in ALPHABETICAL  order.  Moving
  216. around    in this list is quite easy,  and will soon become  second
  217. nature.
  218.  
  219.      In this  documentation,  all user    input is  underlined.  As
  220. well,    when   the"current"    file  is   referenced    in   this
  221. documentation,    it means the file just to the left of your input.
  222. This"current"  file  is often  referred to as the  file  you  are
  223. "on".
  224.  
  225.  
  226.  
  227.  
  228.  
  229.  
  230.  
  231.  
  232.  
  233.  
  234.  
  235.  
  236.  
  237.  
  238.  
  239.  
  240.  
  241.  
  242.  
  243.  
  244.  
  245.  
  246.  
  247.  
  248.  
  249.  
  250.  
  251.  
  252.  
  253.  
  254.  
  255.  
  256.  
  257.  
  258.  
  259.  
  260.                  - 4 -
  261.  
  262.  
  263.  
  264.  
  265.  
  266. NSWP 2    -   A disk maintenance utility
  267.  
  268.  
  269.               Invoking NSWP
  270.  
  271.      To  make effective use of NSWP,  you must know  the  various
  272. options  available to you when you invoke NSWP.  Here are some of
  273. the options:
  274.  
  275. A>NSWP
  276.      This  format simply loads NSWP,  and scans the default drive
  277. and  user for filenames.  Once inside NSWP,  you may change to    a
  278. different  drive  and/or  user,  but when you exit  you  will  be
  279. returned to the drive/user that you called NSWP from.
  280.  
  281. A>NSWP *.COM
  282.      This format loads NSWP and scans the current drive and  user
  283. for  all filenames with the extension '.COM'.  Note that NSWP can
  284. find  system files as well,  so no additional information need be
  285. given.
  286.  
  287. A>NSWP B:*.COM *
  288.      The  presence of the second asterisk indicates to NSWP  that
  289. you wish to scan all user areas of the indicated disk  drive.  In
  290. this case, all '.COM files on all user areas on drive B.
  291.  
  292.      Combinations  of the above are acceptable,  and you may even
  293. log to all user areas,    and find all files with the specification
  294. '*.* *'.
  295.  
  296.      Once  inside  NSWP you are presented with    a  menu,  then    a
  297. report of which drive and user you are logged to,  how much space
  298. is  taken  by the files you have specified,  how many files  have
  299. been found with the specifications given,  and how much space  is
  300. left on the disk. A sample follows:
  301.  
  302. Drive A0:  596K in 36 files.  735K free.
  303.  
  304.      A    special format of this line shows that you are logged  to
  305. all user areas:
  306.  
  307. Drive B*:  950K in 234 files.  2956K free.
  308.  
  309.      From this point, you may execute any of the menu options.
  310.  
  311.      A    special  display  occurs if no files are found    with  the
  312. specification  you have given,    or if there are no files  in  the
  313. given drive/user area(s):
  314.  
  315. No files.
  316.  
  317.      This  display may also occur if you delete all the files out
  318. of a given specification. When this occurs, your menu choices are
  319. limited to ONLY 'S', 'L' or 'X'.  This allows you to see the free
  320. Space on a drive, to Log to another drive/user,  or to eXit.   No
  321. other choices are valid, nor will they be accepted.
  322.  
  323.  
  324.  
  325.  
  326.                  - 5 -
  327.  
  328.  
  329.  
  330.  
  331.  
  332. NSWP 2    -   A disk maintenance utility
  333.  
  334.  
  335. Command Structure
  336.  
  337.      There are two primary types of commands in NSWP:  those that
  338. act  on  one file and  those that act on many  files.  We will go
  339. through  them both.  Before doing that though,    let's try  moving
  340. around in NSWP first.
  341.  
  342.      To move in NSWP, you must first understand that the files on
  343. your selected  drive/user will be presented  to you in    a  sorted
  344. manner.  The  files  are sorted in  this  order:  Filename,  File
  345. extension, user area:
  346.  
  347.    1. B0: -WORK   .001      0K :    
  348.    2. B0: ARCADD  .COM      4K :    
  349.    3. B0: ARCCOPY .COM      2K :    
  350.  
  351.      As you can see, the files are numbered for your convenience.
  352. You may not directly use these numbers.  As you can see, the file
  353. size is also shown (rounded to the nearest block size).
  354.  
  355.      Note  that  if you have enabled the reverse  video  sequence
  356. (see  Epilog),    you  may see some of the letters in the  filename
  357. printed  in reverse video.  The chart below shows how  to  decode
  358. this information.
  359.  
  360.       FFFFFFFF RSA
  361.       12345678 /YR
  362.       |||||||| OSC
  363.  
  364.    4. B0: ARCDEL  .COM      2K :    
  365.  
  366.      As you can see, this looks confusing.  Really, though, it is
  367. not.  The  tags F1-F8 normally are not used,  but NSWP allows you
  368. set F1-F4 for your own use.  The R/O tag means that the file  may
  369. be read, but not written to. The SYS tag means that the file does
  370. not appear in normal DIR listings, and in CP/M 3, MPM and CP/M 86
  371. also means that this file is avaiable to all user areas.  The ARC
  372. tag means that,  if set, the file has been backed up since it was
  373. last accessed.
  374.  
  375.      Now that you understand how files are presented,  we can  go
  376. through a sample session.  Remember, user input is underlined.
  377.  
  378.  
  379.  
  380.  
  381.  
  382.  
  383.  
  384.  
  385.  
  386.  
  387.  
  388.  
  389.  
  390.  
  391.  
  392.                  - 6 -
  393.  
  394.  
  395.  
  396.  
  397.  
  398. NSWP 2    -   A disk maintenance utility
  399.  
  400.  
  401. A>NSWP B:
  402.  
  403. NSWEEP     -  Version 2.05     04/11/1984
  404.     (c) Dave Rand, 1983, 1984
  405.         Edmonton, Alberta
  406.  
  407. Drive B0:   850K in   64 files.   118K free.
  408.  
  409.    1. B0: -WORK   .001      0K :    <SP>
  410.    2. B0: ARCADD  .COM      4K :    <SP>
  411.    3. B0: ARCCOPY .COM      2K :    <CR>
  412.    4. B0: ARCDEL  .COM      2K :    <CR>
  413.    5. B0: ARCDIR  .COM      2K : B
  414.    4. B0: ARCDEL  .COM      2K : B
  415.    3. B0: ARCCOPY .COM      2K : B
  416.    2. B0: ARCADD  .COM      4K : B
  417.    1. B0: -WORK   .001      0K : X
  418. A>
  419.  
  420. Help
  421.  
  422.      At any point, you may request the main help menu by pressing '?'.
  423.  
  424.    1. B0: -WORK   .001      0K : ?
  425.  
  426. NSWEEP     -  Version 2.05     04/11/1984
  427.     (c) Dave Rand, 1983, 1984
  428.         Edmonton, Alberta
  429.  
  430. A - Retag files        :  Q - Squeeze/Unsqeeze tagged files
  431. B - Back one file      :  R - Rename file(s)
  432. C - Copy file           :  S - Check remaining space
  433. D - Delete file        :  T - Tag file for transfer
  434. E - Erase T/U files    :  U - Untag file
  435. F - Find file           :  V - View file
  436. L - Log new disk/user  :  W - Wildcard tag of files
  437. M - Mass file copy     :  Y - Set file status.
  438. P - Print file           :  ? - Display this help
  439. X - Exit to CP/M       :  cr, sp - Forward one file
  440.  
  441.  
  442.  
  443. Moving forward and backward
  444.  
  445.      As you can see,  the two most common commands will be moving
  446. forward and backwards through the directory. Either the SPACE bar
  447. (<SP>), or the RETURN key (<CR>) may be used to move forward.  To
  448. move backwards simply use the 'B' key.    Note that all commands in
  449. NSWP can be either in upper or lowercase.  Internally,    lowercase
  450. will  be  converted  to uppercase.  If you reach the end  of  the
  451. directory  with either    command,  you will be "wrapped around" to
  452. the other end automatically.
  453.  
  454.  
  455.  
  456.  
  457.  
  458.  
  459.                  - 7 -
  460.  
  461.  
  462.  
  463.  
  464.  
  465. NSWP 2    -   A disk maintenance utility
  466.  
  467.  
  468. Exiting
  469.  
  470.      To exit, just use the 'X' command as shown above.    This will
  471. return you to the same drive and user area that you invoked  NSWP
  472. from, regardless of anything you may have done in NSWP.
  473.  
  474. Finding a file
  475.  
  476.      Since you may have many hundreds of files selected,  you may
  477. wish  to  move    rapidly to a particular file.  You  may  do  this
  478. through the 'F', or FIND command.
  479.  
  480.    1. B0: -WORK   .001      0K : F  Which file? BASCOM
  481.  
  482.    8. B0: BASCOM  .COM     32K :
  483.  
  484.      The  Find    command always starts looking from  entry  number
  485. one. You may use the standard CP/M syntax for wildcarding (eg: to
  486. find the first .HEX file,  you may use *.HEX), and also note that
  487. the  Find command will fill all blank spaces with question marks.
  488. This  makes the search strings 'B*.*',    'B',  and 'B??????.'  all
  489. find the first file beginning with 'B'.  As you  experiment,  you
  490. will find other interesting uses for this command.
  491.  
  492.  
  493.      At  this  point,  you  now  know how to  move  through  your
  494. directory,  both rapidly and one step at a time. Let's move on to
  495. some more useful commands.
  496.  
  497. Viewing and Printing a file
  498.  
  499.      The View command,    invoked with a 'V', will type the current
  500. file onto the screen unsqueezing the file if required.    Note that
  501. this command will NOT prevent you from listing ANY type of  file,
  502. so  you  must  use your own judgement on what can and  cannot  be
  503. listed.  At the end of each page on the screen,  view will  stop,
  504. and allow you to abort the viewing with a ^C or a ^X.  To get one
  505. more line from the file, hit the space bar.  To get another page,
  506. hit the <CR> or RETURN key.
  507.  
  508.      The Print command, invoked with a 'P', will send the current
  509. file,  with  no  modifications    or paging,  to the  current  LST:
  510. device.  You  may  abort the print with a ^C  or  ^X.  All  other
  511. features of the View command apply.
  512.  
  513.  
  514. Deleting a file
  515.  
  516.      You can delete the current file just by hitting the 'D' key.
  517. Before deletion occurs, you will be prompted.
  518.  
  519.   12. B0: CDP1      .     40K : D  Delete file? Y
  520.   12. B0: DEAD      .DAT    100K :
  521.  
  522.  
  523.  
  524.  
  525.                  - 8 -
  526.  
  527.  
  528.  
  529.  
  530.  
  531. NSWP 2    -   A disk maintenance utility
  532.  
  533.  
  534.      If any reply other than 'y' or 'Y' is given, the file is not
  535. deleted.  If the file is deleted, it is removed from the list and
  536. the next file is given the current file's number.
  537.  
  538.      If the file is a Read Only file, you will be prompted again:
  539.  
  540.   12. B0: CDP1      .     40K : D  Delete file? Y  R/O. Delete? Y
  541.   12. B0: DEAD      .DAT    100K :
  542.  
  543.  
  544. Copying a file
  545.  
  546.      While on any file, you may copy that file to:
  547. A) Another name, on the same drive/user
  548. B) Another name, on a different drive/user
  549. C) The same name, on a different drive/user
  550.  
  551.      NSWP  will  prevent  you from copying a  file  to    the  same
  552. drive/user  that  the source file resides on.  Other  than  that,
  553. there are no restrictions on where you wish the file to be.  If a
  554. file  exists  on the same drive/user that you wish to  place  the
  555. destination  file,  the  existing file is deleted  automatically,
  556. even  if  it  is Read Only.  When NSWP copies  a  file,  all  the
  557. attributes of the original file are passed on to the  destination
  558. file.  Thus,  if a file is a SYS,  R/O file,  NSWP will cause the
  559. destination  file  to be SYS,  R/O after the file copy has  taken
  560. place.
  561.  
  562.   12. B0: CDP1      .     40K : C  Copy to (filespec)? C9:BACK.CDP
  563.  
  564.      If you wish to preserve the name of the file,  you may  just
  565. enter the destination drive/user part of the filespec (eg. C9: in
  566. the  preceding example would have copied the file to drive C user
  567. 9, retaining the name CDP1).  Just entering the drive part of the
  568. filespec causes  NSWP  to retain the user number  of  the  source
  569. file.
  570.  
  571.      If the filename is followed by a space, then a 'V', the file
  572. will be verify read after it is written.  NSWP maintains a CRC of
  573. the file as it is writing the file, and verifies this CRC.
  574.  
  575.  
  576. Renaming files
  577.  
  578.      The Rename command ('R') may be used to:
  579. A) Change the name of one file
  580. B) Change the names of many files
  581. C) Change the user number of one file
  582. D) Change the user number of many files
  583.  
  584.      To just change the name of one file, the syntax is simple:
  585.  
  586.   12. B0: CDP1      .     40K : R  New name, or *? CDP2
  587.   12. B0: CDP2      .     40K :
  588.  
  589.  
  590.  
  591.                  - 9 -
  592.  
  593.  
  594.  
  595.  
  596.  
  597. NSWP 2    -   A disk maintenance utility
  598.  
  599.  
  600.      You may also change the user number of the file, as follows:
  601.  
  602.   12. B0: CDP1      .     40K : R  New name, or *? B1:CDP2
  603.   12. B1: CDP1      .     40K :
  604.  
  605.      Note  that if all user areas are not specified in the  logon
  606. of NSWP,  the file may not be shown on your list when renaming to
  607. another user area.
  608.  
  609.      To change a group of files from one name to another, you may
  610. enter the following command at any file:
  611.  
  612.    9. B0: BASIC   .COM     24K : R  New name, or *? *
  613.  
  614. Old name? *.HEX
  615. New name? *.BAK
  616.  
  617.      At  this  point  all files with the extension .HEX  will  be
  618. renamed  to the same filename but with the  extension  .BAK.  You
  619. will see a running display on the screen as each file is renamed.
  620. Any  valid wildcard may be used to select the source  files,  and
  621. the destination files will take one character from the source for
  622. each  '?'  in  the name.  An asterisk qualifies  as  filling  the
  623. remainder of the field with '?'.  If the destination file exists,
  624. the rename is not made.
  625.  
  626.  
  627.  
  628.  
  629.  
  630.  
  631.  
  632.  
  633.  
  634.  
  635.  
  636.  
  637.  
  638.  
  639.  
  640.  
  641.  
  642.  
  643.  
  644.  
  645.  
  646.  
  647.  
  648.  
  649.  
  650.  
  651.  
  652.  
  653.  
  654.  
  655.  
  656.  
  657.                  - 10 -
  658.  
  659.  
  660.  
  661.  
  662.  
  663. NSWP 2    -   A disk maintenance utility
  664.  
  665.  
  666.      You  may  also choose to rename a group of files to  another
  667. user area, optionally changing their names as well:
  668.  
  669.    9. B0: BASIC   .COM     24K : R  New name, or *? *
  670.  
  671. Old name? *.HEX
  672. New name? B1:*.BAK
  673.  
  674.  
  675.  
  676.      This command will rename all .HEX files on drive B user 0 to
  677. the  same filename,  but with the extension .BAK,  and place  the
  678. resultant file in user 1.  You may want to try this command a few
  679. times to get the hang of it, but it is extremely powerful.
  680.  
  681.  
  682. The Space command
  683.  
  684.      The  Space command ('S') simply asks you for a  drive  code,
  685. then  tells  you  the remaining space on the drive  you  specify.
  686. Before doing the space check, a drive reset is performed, so feel
  687. free to change disks.
  688.  
  689.  
  690. The Log Command
  691.  
  692.      The Log command ('L') allows you to change your directory to
  693. another drive or user.    Additionally, it allows you to re-specify
  694. the wildcard mask just like entering the NSWP program from  CP/M.
  695. As well,  the drive system is reset,  so again you should be able
  696. to  change  to a different diskette at this point or  to  another
  697. part  of  the same diskette.  When the Log command is  used,  the
  698. instructions are reprinted for review.
  699.  
  700.  
  701.   16. B0: DD      .COM      4K : L  New drive/user/mask? A14:*.HEX
  702.  
  703.  
  704. NSWEEP     -  Version 2.05     04/11/1984
  705.     (c) Dave Rand, 1983, 1984
  706.         Edmonton, Alberta
  707.  
  708. Drive A14:   44K in   2 files.    1118K free.
  709.  
  710.   1. A14:NSWP     .HEX     22K:
  711.  
  712.  
  713.  
  714.  
  715.  
  716.  
  717.  
  718.  
  719.  
  720.  
  721.  
  722.  
  723.  
  724.                  - 11 -
  725.  
  726.  
  727.  
  728.  
  729.  
  730. NSWP 2    -   A disk maintenance utility
  731.  
  732.  
  733.            Introduction to Multifile commands
  734.  
  735.      Now that all the commands that affect single files have been
  736. described, it is time to introduce the concept    of Multifile com-
  737. mands.    These commands    are ones  that affect as few as one or as
  738. many as all of the files on a single disk. To affect these files,
  739. though,  we  must have some way of describing which files need to
  740. be affected.  CP/M has a way to do this,  using "wildcards". This
  741. program, on the other hand, uses the concept of a file"tag".
  742.  
  743. The Tag command
  744.  
  745.      Tagging a file,  in its simplest form,  can be  accomplished
  746. just  by  depressing  the  'T' key when the  file  to  be  tagged
  747. appears.  What    exactly is a tag?  A tagged file is a file in the
  748. list  of filenames that has an asterisk next to the  colon  after
  749. the name of the file, as shown below.
  750.  
  751.    9. B0: BASIC   .COM     24K :*
  752.  
  753.      A tagged file is different from an untagged file in that you
  754. may  now  request an operation that deals with several    unrelated
  755. files (eg., Files that    will not match    using only one wildcard).
  756. A sample"tag" session is shown:
  757.  
  758.    9. B0: BASIC   .COM     24K : T  Tagged files =   24K (  23K).
  759.   10. B0: BRUN      .COM     16K : T  Tagged files =   40K (  39K).
  760.  
  761.      Note that    the 'T' command  automatically    performs  a "move
  762. forward" operation.
  763.  
  764.      To  the right of the 'Tagged files' message two  numbers are
  765. displayed.  The numbers are the total size in K, of the files you
  766. have  tagged so far.  This is useful if,  for  example,  you  are
  767. moving files from one size of diskette to another,  smaller, size
  768. diskette.  If  the  source disk holds 500K,  and the  destination
  769. holds 256K,  you can stop the tagging operation when your size is
  770. just less than 256K.  The tag function in itself does not perform
  771. any  operation,  other than to mark the file for a future"mass"
  772. operation.
  773.  
  774.      By now the astute reader will notice  that I  have  cleverly
  775. skipped over the function of the second  number  display, the one
  776. in parenthesis.  This number is the combined  size of the  tagged
  777. files, IN 1K BLOCKS.  If you are  using  a computer  system  that
  778. supports  many different  disk    sizes/formats, or a system with a
  779. hard disk  attached, you may  already know that CP/M can allocate
  780. storage only in "BLOCKS", and  that  these "BLOCKS" may  be up to
  781. 16k in length.    This means that NSWP would show a file containing
  782. say, 512 bytes in information, as being up to 16k long, depending
  783. on your computer.  The second number in the tag display shows how
  784. much storage the cumulative files would take if they were  stored
  785. on a single-sided, single-density, 8" diskette.
  786.  
  787.  
  788.  
  789.  
  790.                  - 12 -
  791.  
  792.  
  793.  
  794.  
  795.  
  796. NSWP 2    -   A disk maintenance utility
  797.  
  798.  
  799. Wildcard tagging
  800.  
  801.      Another way to tag files is the wildcard tag function.  This
  802. function accepts a CP/M type wildcard and proceeds to tag all the
  803. files that match the wildcard.    To invoke this,  just hit 'W' and
  804. you will be prompted with the message 'Which files?  '    Enter any
  805. CP/M wildcard, right down to a unique filename,  and if that file
  806. exists it will be tagged and displayed.
  807.  
  808. Untagging files
  809.  
  810.      If  you can tag a file,  you must be able to Untag a file as
  811. well.
  812.  
  813.    9. B0: BASIC   .COM     24K :*U  Tagged files =   16K (  16K).
  814.   10. B0: BRUN      .COM     16K :*
  815.  
  816.      As  you can see,  the untag function subtracts  the  current
  817. file's size from the total then displays the total of the remain-
  818. ing files.
  819.  
  820.  
  821. The mass copy command
  822.  
  823.      Now  that we have a number of files "tagged",  what do we do
  824. with them?  Well the Mass copy function is one of those that acts
  825. on many  files.  Its purpose  is to copy  the tagged file(s) from
  826. one drive/user area to another drive/user area.
  827.  
  828.   12. B0: CDP1      .     40K : M
  829.   Copy to drive/user? A14: V
  830.  
  831. Copying   --> B0: BRUN      .COM    to A14:  with verify
  832. Verifying --> file ok.
  833.  
  834.      The 'V' is optional,  and it indicates that you wish to have
  835. the file verified after it is written.
  836.  
  837.      As  you can see,  the files have been sent to drive A,  user
  838. 14.  If you wish the tagged files to reside in the same user area
  839. as the source files after the copy, do not specify a user area in
  840. the  Mass command.  This will cause NSWP to put the file  in  the
  841. same user area as the source file.
  842.  
  843.      NSWP will not allow you to copy a file to the same drive and
  844. user area as the source. The copy is simply not made.
  845.  
  846.  
  847.  
  848.  
  849.  
  850.  
  851.  
  852.  
  853.  
  854.  
  855.  
  856.                  - 13 -
  857.  
  858.  
  859.  
  860.  
  861.  
  862. NSWP 2    -   A disk maintenance utility
  863.  
  864.  
  865. After the mass
  866.  
  867.      After any mass file operation,  the tags are "reset" as each
  868. file is copied.  Visually,  they change from a '*' to a '#'.  The
  869. files  are  logically untagged,  and will respond as  such.  But,
  870. since  NSWP  remembers them,  you can automatically  retag  these
  871. files.    This is useful if, for example, you need to copy the same
  872. files  to  a  number of different diskettes or user  areas  on    a
  873. drive. To invoke this, use the 'A' command.
  874.  
  875.   12. B0: CDP1      .     40K : A
  876.  
  877. Retagging--> B0: BRUN     .COM    Tagged files =      16K (  16K)
  878.  
  879.  
  880.  
  881. Erasing files
  882.  
  883.      You may want to copy a group of files, then delete them from
  884. the source disk after the copy has been made. To do this, you can
  885. use either the 'C' command to copy,  followed by the 'D' command,
  886. which is tedious,  or a combination of the 'T', 'M', 'A', and the
  887. 'E' commands.  The 'E' command Erases tagged or untagged files at
  888. your option, on a global scale.
  889.  
  890.   12. B0: CDP1      .     40K : E
  891. Erase Tagged or Untagged files (T/U)? T
  892. Do you wish to be prompted (Y/N/A)? N
  893.  
  894. Deleting  --> B0: BRUN      .COM
  895.  
  896.      If  you specify Untagged files,  the untagged  files will be
  897. erased.  You  may wish to be prompted before  each file is  to be
  898. deleted, and you can do this via the second question.
  899.  
  900.  
  901.  
  902. Squeezing and Unsqueezing files
  903.  
  904.      The  'Q' command allows you to Squeeze and Unsqueeze  tagged
  905. files.    This file squeeze program is compatible with the original
  906. squeeze/unsqueeze programs written in the 'C' language by Richard
  907. Greenlaw.  After hitting Q, you will see the prompt:
  908.  
  909. Squeeze, Unsqueeze or Reverse (S/U/R)?
  910.  
  911.      After  answering this  skill-testing question,  you  will be
  912. asked  which drive/user you wish to place the destination  files.
  913. The syntax here is the same as for the Move command, except it is
  914. permissible  to  'Q' the files back to the same  drive/user  that
  915. they originated.
  916.  
  917.  
  918.  
  919.  
  920.  
  921.  
  922.                  - 14 -
  923.  
  924.  
  925.  
  926.  
  927.  
  928. NSWP 2    -   A disk maintenance utility
  929.  
  930.  
  931.      When 'Q' is invoked, you are asked if you wish  to  Squeeze,
  932. Unsqueeze  or Reverse.    A carriage return here will return you to
  933. the command line of NSWP.
  934.  
  935.      If  you  select 'S' for Squeeze,  all tagged  files  will be
  936. examined  to  see  if it is "worth" squeezing  them.  Files  that
  937. exibit ANY space reduction,  even if it is only one sector,  will
  938. be squeezed.  If the files is not "worth" squeezing the file will
  939. simply be copied to the destination drive/user.
  940.  
  941.      If you  select 'U' for Unsqueeze, all tagged files  will  be
  942. examined to see if they are squeezed.  If they are,  they will be
  943. unsqueezed, and moved to the destination drive/user.  If they are
  944. not squeezed, then they are simply copied.
  945.  
  946.      If you select 'R' for Reverse, all files that  are  squeezed
  947. will  be  unsqueezed,  and all files that are unsqueezed will  be
  948. squeezed  (if  it  is worth it),  and moved  to  the  destination
  949. drive/user.
  950.  
  951.      The most attractive feature of the 'Q' command in general is
  952. the ability to Squeeze files ONLY if it is "worth" it. This means
  953. that  by  using  NSWP,    you can archive data  into  the  absolute
  954. minimum amount of space possible.   The SQ algorithm used in NSWP
  955. is better than the one in the original 'C' squeezer, and produces
  956. the smallest output file possible with current technology.
  957.  
  958.      The file squeezer section was done by Jim    Lopushinsky,  and
  959. is copyrighted    separately  by him.  He also has a public  domain
  960. standalone squeezer.
  961.  
  962.  
  963. Setting the tagged files status
  964.  
  965.      You  may set the attributes of a group of tagged files  just
  966. like STAT, or PROT.  To do this, tag the files and select the 'Y'
  967. command.
  968.  
  969.   12. B0: CDP1      .     40K : Y  Which flags (1-4,R,S,A)? R,S
  970.  
  971. Setting ---> B0: BRUN     .COM to R/O SYS
  972.  
  973.  
  974.      The  flags you may set are the F1-F4 flags,  as well as  the
  975. Read Only,  System,  and Archive (MP/M,  CP/M 3 only) flags.  Any
  976. flags  you do not specify will be reset.  To reset all the  flags
  977. (i.e., Change to R/W, DIR and no "Sysop tag") just enter a single
  978. comma or space at the "Which flags" prompt.  Note that the  flags
  979. in the    "Which flags"  question do not have to be entered with    a
  980. comma between them, as anything (or nothing at all!) will do.  As
  981. far as the program is concerned  'RSA',  'R S A', and 'R,S A' are
  982. all valid.
  983.  
  984.  
  985.  
  986.  
  987.  
  988.                  - 15 -
  989.  
  990.  
  991.  
  992.  
  993.  
  994. NSWP 2    -   A disk maintenance utility
  995.  
  996.  
  997.                  Epilogue
  998.  
  999.      All the functions of NSWP have now been described.  The best
  1000. way to get more familiar  with the program is to actually USE it.
  1001. I think it will be one of your most frequently used programs.
  1002.  
  1003.      There  are several things in this version that you will want
  1004. to alter:
  1005.  
  1006. 103H
  1007. This byte controls the screen length used in the 'V'iew  command.
  1008. It is currently set to 23D (17H).
  1009.  
  1010. 104H-10AH - Turn reverse video on
  1011. The first byte in this sequence of seven shows the length of  the
  1012. reverse  video on sequence,  which follows at location 105H.  All
  1013. seven bytes are currently set to zero.
  1014.  
  1015. 10BH-111H - Turn reverse video off
  1016. The  first byte in this seqence of seven shows the length of  the
  1017. reverse video off sequence,  which follows at location 10DH.  All
  1018. seven bytes are currently set to zero.
  1019.  
  1020.  
  1021.                  Credits
  1022.  
  1023.      My thanks to all who made this program possible and particu-
  1024. larly to Dave Mccrady for his help in composing the documentation
  1025. and .HLP files    for NSWP.  Thanks also goes  to Jim  Lopushinsky,
  1026. also of Edmonton, since without  him the SQ section of NSWP might
  1027. never have been completed!  Thanks  to the use of his SQ section,
  1028. NSWP can produce the smallest possible SQ'ed files.
  1029.  
  1030.  
  1031.               Contributions
  1032.  
  1033.      If you like, use and enjoy this program, feel free to send a
  1034. contribution  (suggest    $20).    This  will help  me  expand  this
  1035. program, and add even more features.  I am currently working on a
  1036. CP/M 86 version, and once that is running, I intend to port it to
  1037. MSDOS.    Suggestions for enhancement are also appreciated, and you
  1038. may send them to:
  1039.  
  1040.                 Dave Rand
  1041.                 10232 - 160 Street
  1042.                 Edmonton, Alberta  CANADA
  1043.                 T5P 3E9
  1044.  
  1045.  
  1046.  
  1047.  
  1048.  
  1049.  
  1050.  
  1051.  
  1052.  
  1053.  
  1054.                  - 16 -
  1055.  
  1056.  
  1057.