home *** CD-ROM | disk | FTP | other *** search
/ CP/M / CPM_CDROM.iso / enterprs / cpm / utils / f / nswp207.ark / S.DOC < prev   
Text File  |  1993-03-26  |  29KB  |  977 lines

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