home *** CD-ROM | disk | FTP | other *** search
/ Power-Programmierung / CD1.mdf / pascal / library / dos / s_filema / sfm.txt < prev    next >
Encoding:
Text File  |  1987-06-28  |  45.0 KB  |  1,155 lines

  1.  
  2.  
  3.  
  4.  
  5.  
  6.  
  7.  
  8.  
  9.  
  10.  
  11.  
  12.  
  13.  
  14.                    Super File Manager v1.0
  15.  
  16.                         USER'S GUIDE
  17.  
  18.  
  19.  
  20.  
  21.                         David Steiner
  22.                         2035 J Apt. 6
  23.                         Lincoln, NE  68510
  24.                         (402) 475-0601
  25.  
  26.  
  27.  
  28.  
  29.      Written for:
  30.  
  31.                  Capitol PC User Group Inc.
  32.              1987 Software Programming Contest.
  33.  
  34.  
  35.  
  36.  
  37.      Permission is granted for Capitol PC and other not for 
  38. profit organizations to publish the source and executable 
  39. portions of this program.
  40.  
  41.                   >> SYSTEM REQUIREMENTS <<
  42.  
  43.  
  44.      I believe the only restrictive requirement for this 
  45. program to be the use of MS DOS version 2.0 through 3.2, 
  46. and possibly later versions.  Other than that it should run 
  47. with most any hardware configuration.
  48.  
  49.  
  50.                      MEMORY REQUIREMENTS
  51.  
  52.      The program uses the full 64K code segment plus about 
  53. 35K of space for its data segment.  In addition to this it 
  54. requires heap space for its copy buffer and other internal 
  55. operations.  The amount of space required for this will 
  56. vary according to your system's disk drives as follows:
  57.  
  58.           360K floppies      4K
  59.           1.2 Meg floppies   7K
  60.           20 Meg fixed      16K
  61.  
  62. Thus, the minimum amount of memory to run this program 
  63. would be 103K if you only accessed floppy drives.  If you 
  64. intend to access a 20 Meg fixed disk then you would need to 
  65. have around 115K of free memory.
  66.  
  67.      For most systems this is not a restrictive amount of 
  68. memory to ask for, unless there are an unusual number of 
  69. resident programs active.  However, if you do run out of 
  70. memory the program will simply abort and give you a bit of 
  71. error information.  Please see the discussion (far) below 
  72. entitled ABORT ON ERROR for a bit more information.
  73.  
  74.      A final note on memory requirements is that the 
  75. Undelete function on menu two requires a second copy of the 
  76. disk's file allocation table.  For this reason you would 
  77. need about double (very rough estimate) the heap space 
  78. stated above.  So to use this function on floppy disk you 
  79. need a minimum of 107K free memory.  If SFM runs out of 
  80. memory when trying to execute this function SFM does not 
  81. abort, it just disables the function.
  82.  
  83.  
  84.                        SFM FILE LIMIT
  85.  
  86.      The maximum number of file's that SFM will load into 
  87. memory from a directory is 512.  If this limit is exceeded 
  88. SFM tells you so and most commands remain active.  The two 
  89. that are disabled are the undelete and update directory 
  90. functions on menu two.  Note that this means you can use 
  91. the menu two functions, but will be unable to save them to 
  92. disk (sorry about that).
  93.  
  94.  
  95.                    Super File Manager - 2
  96.                     >> OVERVIEW OF SFM <<
  97.  
  98.  
  99.      Super File Manager (SFM) is very good at what it is 
  100. designed for.  For those of you familiar with the 
  101. commercial programs XTREE (real pretty) and NORTON'S 
  102. UTILITIES (very functional) I can tell you that SFM is 
  103. something of a cross between them.  Its advantage over 
  104. XTREE is its ability to display more that one directory.  
  105. The advantage over NORTON, in my opinion, is that SFM is 
  106. easier to use.  But you may find that the most overwhelming 
  107. advantage is that the source code is available and you can 
  108. tailor SFM to your tastes.
  109.  
  110.      The commands for SFM are broken into two menus.  The 
  111. commands in menu one allow all of the normal management 
  112. functions and act directly on the disk.
  113.  
  114.      Those commands set in menu two are for the "super" 
  115. mode.  They include functions that you won't use often, but 
  116. are nice to have around.  Changes from this menu are made 
  117. in memory and only become permanent at your decision by 
  118. updating the changes on the disk.
  119.  
  120.      Giving credit where it is due I must admit that I got 
  121. the idea for the layout from a shareware program called "PC 
  122. DOS Filer" by Bill Neidert.  I didn't have thirty bucks so 
  123. I wrote SFM instead.
  124.  
  125.      If you only have a single disk drive SFM is still 
  126. potentially useful for you. If your system has 640K of 
  127. memory SFM will be able to load an entire 360K disk during 
  128. a copy before requesting that you insert a new disk for the 
  129. other drive.  While SFM does not allow you to load two 
  130. different directories from the same drive, it does take 
  131. advantage of DOS's method of using a single floppy as both 
  132. drives A and B.  (Ever seen the message "Insert diskette 
  133. for drive B: and hit any key"?  That's what I'm talking 
  134. about.)
  135.  
  136.  
  137.                    Super File Manager - 3
  138.                         >> STARTUP <<
  139.  
  140.      Most of the first SFM screen displays information you 
  141. probably don't care about, but my ego demanded some 
  142. gratification.  Towards the bottom, however, are two items 
  143. you should pay attention to.
  144.  
  145.      The second to last line displays the information "Copy 
  146. buffer = xxxxxx bytes ( xxxK )."  This is the amount of 
  147. heap space SFM currently has available to it.  This buffer 
  148. the memory area used for all temporary data, including the 
  149. copy buffer.  Note that for SFM a kilobyte is interpreted 
  150. as 1024 bytes.
  151.  
  152.      Generally, this number should be fairly high.  On my 
  153. system (640K) it is listed as 356K, and I load about 150K 
  154. worth of resident programs before running SFM.  This is 
  155. more than enough memory to allow all SFM functions.
  156.  
  157.      The last line just asks whether or not you have a 
  158. color system.  The default answer should reflect your 
  159. system setup (according to the current text mode).  If you 
  160. prefer black and white, or have a CGA display adapter 
  161. paired with a monochrome monitor just answer no and you get 
  162. the ugly, but readable, two color setup.
  163.  
  164.  
  165.                    Super File Manager - 4
  166.                  >> BRIEF COMMAND SUMMARY <<
  167.  
  168.  
  169. MENU ONE:
  170.  
  171.      F1             : Display help in left window.
  172.      F2             : Display help in right window.
  173.      F3             : Load a subdirectory in left window.
  174.      F4             : Load a subdirectory in right window.
  175.      F5             : Load a new path in left window.
  176.      F6             : Load a new path in right window.
  177.      F7             : Select command to left.
  178.      F8             : Select command to right.
  179.      F9             : Mark a file for a later operation.
  180.      F10            : Remove a mark from a file.
  181.      DEL            : Delete a file or directory.
  182.      
  183.      CLEAR ALL      : Clear all marks from files in window.
  184.      MARK ALL       : Mark all files.
  185.      COPY           : Copy the marked files.
  186.      DELETE         : Delete the marked files.
  187.      COPYINFO       : Display size total of marked files.
  188.      MOVE           : Move marked files without copying.
  189.      RENAME         : Rename file / directory.
  190.      RELOAD         : Force SFM to reload the directory.
  191.      SET MASK       : Mask the files being displayed.
  192.      MAKE DIR       : Make a new directory.
  193.      TOG ATTR       : Toggle an attribute bit for a file.
  194.      CLEAR DISK     : Clear all files from a floppy disk.
  195.      MENU 2         : Enter the advanced functions menu.
  196.      QUIT           : Exit SFM.
  197.  
  198.  
  199. MENU 2:
  200.  
  201.      F7             : Select command to left.
  202.      F8             : Select command to right.
  203.      F9             : Same as PICK UP (below).
  204.      F10            : Drop a file after moving it.
  205.      
  206.      SORT           : Sort the directory.
  207.      VOL LABEL      : Specify a new volume label.
  208.      RENAME         : Rename a file in memory.
  209.      RELOAD         : Force SFM to reload directory.
  210.      UNDELETE       : Attempt to recover deleted file.
  211.      PURGE          : Zero out all deleted entries.
  212.      DISKINFO       : Technical information about disk.
  213.      PICK UP        : Move entry around directory.
  214.      UPDATE         : Write the altered directory to disk.
  215.      MENU 1         : Return to normal SFM function menu.
  216.  
  217.  
  218.                    Super File Manager - 5
  219.                  >> GETTING AROUND IN SFM <<
  220.  
  221.  
  222.      This section will provide a summary of what SFM 
  223. expects from you when it asks for input.
  224.  
  225.                           YES OR NO
  226.  
  227.      All yes or no prompts are handled the same.  You are 
  228. presented with a question followed by the default answer.  
  229. To accept this just hit the ENTER key, to toggle it hit the 
  230. SPACE BAR or the "+" key.  You may also type a "Y" or "N" 
  231. to answer directly.  After the response you want is 
  232. displayed you then press the ENTER key to accept it.
  233.  
  234.                           SELECT...
  235.  
  236.      A similar technique is used for questions that start 
  237. out with the word "Select".  You may use the SPACE BAR or 
  238. "+" key to step through the possible responses and then hit 
  239. the ENTER key when you have chosen the one you want.  You 
  240. may also type the first letter of the option you want, if 
  241. you already know what is available.
  242.  
  243.      If you change your mind about executing the current 
  244. command at one of these prompts you can abort the function 
  245. by typing the ESC key.
  246.  
  247. An example:
  248.      When you are preparing to sort a directory you will 
  249.      eventually be presented with the "Select sort order >" 
  250.      prompt.  The default is "Forward" when the program 
  251.      starts but you may also select "Reverse" by hitting 
  252.      the SPACE BAR, "+", "R" or even "r" key.  If you 
  253.      decide not to sort the directory you can press the ESC 
  254.      key to abort the function.
  255.  
  256.                THE CURSOR KEYS : FILE POINTER
  257.  
  258.      The cursor keypad is used by SFM to move the arrow 
  259. around the directory window, as well as moving the entire 
  260. window around the portion of the directory displayed.  The 
  261. keys function as follows:
  262.  
  263.           Home      : Move to beginning of directory.
  264.           End       : Move to the end.
  265.           Pg Up     : Scroll up the length of one page.
  266.           Pg Dn     : Scroll down the length of one page.
  267.           UpArrow   : Move up one entry.
  268.           DnArrow   : Move down one entry.
  269.           -->       : Switch to right window, if loaded.
  270.           <--       : Switch to left window, if loaded.
  271.  
  272.  
  273.                    Super File Manager - 6
  274. Note that the "Del" key has a special meaning.  This key is 
  275. used to delete the file or directory pointed at by the 
  276. arrow.  This function is covered below under MENU ONE 
  277. COMMANDS.
  278.  
  279.  
  280.            SHIFT-CURSOR KEYS : HIGHLIGHTED COMMAND
  281.  
  282.      SFM also uses the cursor keypad to move the highlight 
  283. bar in the command window.  By holding down the SHIFT key 
  284. the cursor keys take on the following meaning:
  285.  
  286.           Home      : Move bar to upper left corner.
  287.           End       : Move bar to lower left corner.
  288.           UpArrow,
  289.           DnArrow   : Switch rows.
  290.           -->       : Move bar right one entry.
  291.           <--       : Move bar left one entry.
  292.  
  293.      For those people who don't like the idea of having to 
  294. hold down the SHIFT key to move the highlight bar there are 
  295. other keys that perform the same function:
  296.  
  297.           F7        : Move bar left one entry.
  298.           F8,
  299.           SPACE,
  300.           "+"       : Move bar right one entry.
  301.  
  302.      Finally, you will notice that I have provided a 
  303. wraparound feature so that using the SPACE BAR will still 
  304. get you to any of the commands.  After you have highlighted 
  305. the command you want pressing the ENTER key will execute 
  306. it.
  307.  
  308.  
  309.                         STRING INPUT
  310.  
  311.      Now on to those prompts that require you to enter a 
  312. path or file name.  You will be asked to enter a string 
  313. value and you basically just type in whatever you think 
  314. fits the question and hit ENTER.
  315.  
  316.      There is a limit set on the number of characters that 
  317. will be accepted, but this shouldn't usually be a problem.  
  318. For most prompts this limit is the amount of space to the 
  319. end of the line.  Unless you happen to like real long path 
  320. names (over 50 characters) you will never hit this limit.  
  321. If you attempt to enter more characters than are allowed 
  322. you get beeped (a very short beep).
  323.  
  324.  
  325.                    Super File Manager - 7
  326.      Should you decide against executing a function that is 
  327. asking for this type of input you can abort by just 
  328. pressing ENTER without typing anything.
  329.  
  330. An example:
  331.      When you are asked for a new directory mask SFM will 
  332.      only accept twelve characters.  This makes sense, 
  333.      since anything longer than that will be ignored when 
  334.      the new mask is parsed anyway.  If you want to leave 
  335.      the mask set as is, you just press ENTER without 
  336.      typing in a new mask.
  337.  
  338.  
  339.                    Super File Manager - 8
  340.                     >> THE SFM SCREEN <<
  341.  
  342.  
  343.      Most of the items displayed on the screen will have an 
  344. obvious meaning, but we'll cover them all anyway (sorry if 
  345. you don't like wordy documentation).
  346.  
  347.      First let's just note that there are three distinct 
  348. portions of the screen; the command window at the bottom, 
  349. and two display windows.  Normally the two display windows 
  350. will contain directory information, but on occasion they 
  351. will also display a help screen.
  352.  
  353.  
  354.                     THE DIRECTORY WINDOW
  355.  
  356.      The top line of the window is a box that contains the 
  357. path of the directory being displayed.  Note that if you 
  358. have a very long path name this box only displays the last 
  359. 38 characters of the path name, which should be enough to 
  360. let you know where you are.
  361.  
  362.      The next line is actually part of the window's 
  363. border.  Most of the time this is simply a horizontal 
  364. line.  However, when you have set a mask (explained below) 
  365. this line will display the mask as you entered it.  It 
  366. becomes a simple horizontal line again when you enter '*.*' 
  367. or its equivalent as the mask.
  368.  
  369.      The body of the window displays the current directory 
  370. and the relevant information about each file:
  371.  
  372.           Column    What's there
  373.           ------    ---------------------
  374.             1       Name
  375.             2       Extension
  376.             3       Size OR
  377.                       <DIR> = Directory
  378.                       (VOL) = Volume Label 
  379.             4       Date last updated
  380.             5       Time last updated
  381.             6       Attributes:
  382.                       A    = Archive bit
  383.                       S    = System file
  384.                       H    = Hidden file
  385.                       R    = Read-only file
  386.                       >DEL = Deleted file
  387.  
  388. Note that the file size is overwritten by <DIR> or (VOL) 
  389. since entries of this type have a size of zero anyway.  
  390. Also, you will not see the ">DEL" or "(VOL)" symbols (or 
  391. the files associated with them) when you are in menu one, 
  392. they are only displayed in menu two.
  393.  
  394.  
  395.                    Super File Manager - 9
  396.      The last line is displayed as part of the window's 
  397. border.  This line will contain two pieces of information:
  398.  
  399.           DirSize = Total of all file sizes in directory.
  400.           Free    = Amount of free disk space left.
  401.  
  402.  
  403.                         HELP WINDOWS
  404.  
  405.      The help windows simply display a list of those 
  406. function or cursor keys that have special meanings for the 
  407. current menu.  The help windows from menu one can be 
  408. toggled on or off using the F1 and F2 keys.  The help 
  409. window for menu two remains displayed at all times since 
  410. you may only use menu two commands on one directory at a 
  411. time.
  412.  
  413.  
  414.                        COMMAND WINDOW
  415.  
  416.      The bottom four lines are used to display the command 
  417. menu.  This window will contain the commands that may be 
  418. selected for the current menu.  The current command will be 
  419. highlighted and this may be executed by pressing the ENTER 
  420. key.
  421.  
  422.      Selecting a command is covered above by the section 
  423. called SHIFT-CURSOR KEYS.
  424.  
  425.      This window has two other uses.  The user will be 
  426. prompted for input through this window and error or warning 
  427. messages are displayed here also.
  428.  
  429.  
  430.                    Super File Manager - 10
  431.                        >> MENU ONE <<
  432.  
  433.      This menu contains the commands that you will most 
  434. often use.  Let the descriptions begin...
  435.  
  436. F1, F2 : DISPLAY HELP
  437.  
  438.      Pressing one of these function keys will display a 
  439.      brief help window that lists what each function key is 
  440.      for as well as how to select and execute commands.  
  441.      This window remains displayed until the F1 or F2 key 
  442.      is pressed again.  F1 displays in the left window and 
  443.      F2 is for the right.
  444.  
  445. F3, F4 : LOAD A SUBDIRECTORY
  446.  
  447.      If the file pointer in the current window is next to a 
  448.      subdirectory that subdirectory will be loaded.  It is 
  449.      loaded into the left window if F3 is pressed and to 
  450.      the right if F4 is pressed.
  451.  
  452. F5, F6 : LOAD A NEW PATH
  453.  
  454.      These keys prompt you for an entirely new path.  If 
  455.      you wish to get a directory from another drive then 
  456.      just include the drive specifier as part of the path 
  457.      name.  Another item to note is that the new path name 
  458.      is relative to the current window's path, just as the 
  459.      CD command from DOS is relative to its current 
  460.      directory.
  461.      
  462.      An example:
  463.           The current directory you have loaded is 
  464.           C:\BS\SFMDOCS.  If you wanted to go to the root 
  465.           directory you could enter "\" and press ENTER.  
  466.           If you wanted to go to C:\BS then you'd enter 
  467.           "..".  Or finally if you wanted to load the 
  468.           default directory on drive A: you type "a:".
  469.  
  470. F9 : MARK ENTRY
  471.  
  472.      The important commands available in menu one act on 
  473.      groups of files.  This is the function key that you 
  474.      use to tell those commands that this file should be 
  475.      included in the operation.  When you press F9 the 
  476.      entry next to the file pointer in the current window 
  477.      will become highlighted, unless it happens to be a 
  478.      directory entry.  Directories are not included in any 
  479.      of the group commands so there is no reason to mark 
  480.      them.
  481.  
  482.  
  483.                    Super File Manager - 11
  484. F10 : UNMARK ENTRY
  485.  
  486.      Should you change your mind about including a file in 
  487.      one of the group commands you can remove the tag by 
  488.      using this key.
  489.  
  490. DEL : DELETE FILE OR DIRECTORY
  491.  
  492.      This key may be used to delete a single file or 
  493.      subdirectory entry.  It does not matter if the file 
  494.      has been marked or not.
  495.      
  496.      When deleting a file the read-only attribute must not 
  497.      be set.  Should you wish to delete such a file you 
  498.      must first use the toggle attribute command described 
  499.      below.
  500.      
  501.      When deleting a directory it must be empty or you will 
  502.      get an error message (access to file denied).  To 
  503.      alleviate this problem you must load that directory 
  504.      and delete all of its files (better safe than sorry).
  505.  
  506. CLEARALL : CLEAR ALL MARKS FROM WINDOW
  507.  
  508.      Does just what it sounds like, removes all marks.  
  509.      This includes those not displayed through the current 
  510.      mask (described below).
  511.  
  512. MARK ALL : MARK ALL FILES IN WINDOW
  513.  
  514.      Hey! This is the opposite of CLEARALL, with a couple 
  515.      of exceptions.  It doesn't mark directories and only 
  516.      applies to those files that are displayed through the 
  517.      current mask.
  518.  
  519. COPY : COPY ALL MARKED FILES
  520.  
  521.      Finally we get to something that actually needs a 
  522.      description.  This function copies all of the files 
  523.      that are marked and are visible through the directory 
  524.      mask.
  525.      
  526.      Where?  If there is another directory loaded SFM will 
  527.      ask if that should be the destination.  If not, or you 
  528.      answer no, you are prompted for the destination path.  
  529.      This path may be entered relative to the source path.
  530.      
  531.      During a copy many things can occur and you're about 
  532.      to here about them...
  533.      
  534.  
  535.                    Super File Manager - 12
  536. COPY : continued
  537.  
  538.      For example, what if there is an error writing to the 
  539.      destination.  Well if the error is caused by the 
  540.      destination file already existing with the read-only 
  541.      attribute set (or some similar error) you have the 
  542.      option of quitting or continuing with the next marked 
  543.      file.  If you still want to replace a file with its 
  544.      read-only bit set you will have to first use the 
  545.      toggle attribute function described below.
  546.      
  547.      What if the destination disk gets full?  Well, that 
  548.      depends on whether or not you can change disks.  If 
  549.      you can change disks you may continue with the copy 
  550.      operation.  The program assumes that drives A and B 
  551.      are floppy drives and that all others (if present) are 
  552.      fixed disks or perhaps RAM drives.  My apologies to 
  553.      those with a different (and odd) configuration.
  554.      
  555.      If you get to a point where you need to change disks 
  556.      during a copy there are all kinds of options:
  557.      
  558.           First you are told to change the disk (the new 
  559.           one must be formatted).
  560.           
  561.           Then SFM loads a directory from the disk so you 
  562.           can make sure it is OK to copy to it.
  563.           
  564.           The next prompt will ask whether or not you wish 
  565.           to clear the disk (described below).
  566.           
  567.           Now if the destination path was not present you 
  568.           are asked whether or not SFM should create it.
  569.           
  570.           If you do not want the path created then SFM 
  571.           assumes that it should write to the root 
  572.           directory and finally continues with the copy.
  573.      
  574.      Here is something to take note of when a copy gets 
  575.      interrupted.  SFM is smart enough to remember what it 
  576.      had already loaded before the error. However, 
  577.      sometimes it must reload all of the files starting 
  578.      with the one that caused the error.
  579.      
  580.      The most common cause of this is from using the clear 
  581.      disk option during a disk change.  During a clear 
  582.      operation SFM uses the copy buffer space for temporary 
  583.      storage before writing the new (empty) FAT and root 
  584.      directory to disk.
  585.      
  586.      As an attempt to clarify this the next page contains 
  587.      an example of using the copy function.
  588.  
  589.  
  590.                    Super File Manager - 13
  591. COPY : continued
  592.  
  593.      An in-depth example:
  594.      
  595.           You have decided to copy the entire utility 
  596.           directory from your fixed disk to floppies as a 
  597.           backup.  First you load that directory and mark 
  598.           all of the files.  Next you place a blank floppy 
  599.           in drive A, load it into the other window and 
  600.           create the destination path "A:\UTILITY" (see 
  601.           MAKE DIR).
  602.           
  603.           Now you get the file pointer in the window that 
  604.           contains "C:\UTILITY", select the COPY command 
  605.           and accept the default for the destination, which 
  606.           is "A:\UTILITY".
  607.           
  608.           About half way through you get the prompt "Disk 
  609.           full: Continue with copy?"  You decide to 
  610.           continue and are asked to put a new disk in drive 
  611.           A.
  612.           
  613.           After doing this you notice that it has loaded 
  614.           directory "A:\" in place of the old "A:\UTILITY" 
  615.           directory that was there.  This means that the 
  616.           destination path was not present so SFM decided 
  617.           to load the root instead.
  618.           
  619.           You now notice that the disk contains several 
  620.           files that look like your recently divorced 
  621.           (wife/husband)'s tax records.  Heh-heh, well now 
  622.           we know how to answer that prompt at the bottom 
  623.           of the screen that says something like "Clear 
  624.           Disk?".
  625.           
  626.           So now we've cleared the disk, what about the 
  627.           next (LAST) question "Attempt to create 
  628.           A:\UTILITY?".  For consistency in our backup 
  629.           scheme we say yes and SFM creates the directory 
  630.           and continues with the copy by reading in the 
  631.           files from where it was interrupted.
  632.           
  633.           That about wraps up a windy copy example.
  634.           
  635.           As a final note I would like to point out that an 
  636.           error during a disk change will result in 
  637.           starting over from the "Insert new disk in drive 
  638.           A and PRESS ANY KEY" prompt.  This could happen, 
  639.           for example, by putting an unformatted disk in 
  640.           the drive by accident or if SFM fails to create 
  641.           the destination path for some reason.
  642.  
  643.  
  644.  
  645.                    Super File Manager - 14
  646. COPYINFO : DISK SPACE REQUIRED FOR MARKED FILES
  647.  
  648.      Choosing this option will display two or three lines 
  649.      of valuable information about the files you have 
  650.      marked.  First it totals the sizes of all those files 
  651.      that are marked and visible through the current mask 
  652.      (see below).
  653.      
  654.      The first line shows how many files are marked and 
  655.      their total size in bytes.  The next line shows how 
  656.      much disk space they require on their current drive 
  657.      and tells whether or not you could store another copy 
  658.      on that drive.  If you have another directory loaded 
  659.      on a different drive there will be a third line  
  660.      containing similar information.
  661.      
  662.      This may not always be completely accurate.  SFM does 
  663.      not take into account the fact that there may be files 
  664.      in the destination directory that have the same name 
  665.      as those in the source.  So once in a while SFM will 
  666.      say that the files will not fit, when they really 
  667.      would since the duplicate files will be overwritten.
  668.  
  669. DELETE : DELETE MARKED FILES
  670.  
  671.      This function will delete all of the marked files from 
  672.      the current directory.  Use with caution since you 
  673.      can't always recover something you have deleted.  If 
  674.      SFM runs across a file with a read-only attribute or 
  675.      for some other reason cannot delete one of the marked 
  676.      files you will get an error message.  When this 
  677.      happens SFM will ask if you would like to continue 
  678.      with the next marked file.
  679.  
  680. MOVE : MOVE A FILE WITHIN THE TREE STRUCTURE
  681.  
  682.      Here is an interesting function.  SFM will take those 
  683.      files that are marked and simply delete their names 
  684.      from the source directory and place them into the 
  685.      destination directory.  This is a quick and simple way 
  686.      to move files around on a hard disk.  Because the file 
  687.      is not physically moved the destination path must be 
  688.      on the same disk or you will get an error message.
  689.      
  690.      This function was not as hard to write as it may seem, 
  691.      DOS does the work for us.  Unfortunately there is no 
  692.      way to access this function directly from the DOS 
  693.      command line (somebody wasn't thinking at MicroSoft 
  694.      headquarters).
  695.  
  696.  
  697.  
  698.                    Super File Manager - 15
  699. RENAME : RENAME A FILE
  700.  
  701.      This command will prompt you for a new file name for 
  702.      the file currently being pointed at.  After you have 
  703.      entered one SFM attempts to change the name on disk, 
  704.      if it is not successful you probably didn't enter a 
  705.      valid DOS name.
  706.  
  707. RELOAD : FORCE A FULL RELOAD
  708.  
  709.      This function is handy when you are accessing floppies 
  710.      a lot.  As long as the path for the current window is 
  711.      the root directory changing disks is easy.  It also 
  712.      reads in the disk free space again to be certain it is 
  713.      correct.
  714.  
  715. SET MASK : MASK ENTRIES THAT ARE DISPLAYED
  716.  
  717.      This function allows you to specify what files are to 
  718.      be displayed in the current window, as well as which 
  719.      are included in group operations.  This mask operates 
  720.      just like the one you would use for a directory from 
  721.      the DOS command line.
  722.      
  723.      The current mask for each window is displayed near the 
  724.      top of the window, unless it is set to "*.*".  The 
  725.      mask will not be changed again until SFM is told to 
  726.      change it.  It may be 'turned off' by entering "*.*" 
  727.      as the mask.  Also note that this mask has no meaning 
  728.      when you enter menu two.
  729.      
  730.      Changing the mask does not affect which files are 
  731.      marked, but marked files that aren't shown by the mask 
  732.      are not included in group operations.  This is useful 
  733.      if you want to quickly mark all files with a certain 
  734.      extension.
  735.      
  736.      An example:
  737.      
  738.           You plan to copy several files to drive A from 
  739.           your SFM source directory.  This is no small task 
  740.           since the files you wish to copy are scattered 
  741.           among two thousand test files.  Luckily the 
  742.           majority of the files to be copied end with the 
  743.           "INC" extension.  First you set the mask to 
  744.           "*.INC" and then use the 'mark all' function.  
  745.           Then you set the mask back to "*.*" and mark two 
  746.           more files that didn't happen to end with "INC", 
  747.           namely "SFM.COM" and "SFM.PAS".  Finally you can 
  748.           use the copy function to copy the marked files.
  749.  
  750.  
  751.  
  752.                    Super File Manager - 16
  753. MAKE DIR : CREATE A NEW SUBDIRECTORY
  754.  
  755.      If you need a new subdirectory while working with SFM 
  756.      just ask for one.  You will be prompted for a new path 
  757.      to create.
  758.      
  759.      It will be created in relation to the current path, 
  760.      but is not limited to that.  You can make a directory 
  761.      anywhere you want, even on a drive that is not 
  762.      currently loaded into a window.  The only limitations 
  763.      are what DOS will accept and the length of the input 
  764.      line (you don't really want a path that long anyway).
  765.  
  766. TOG ATTR : TOGGLE A FILE'S ATTRIBUTE BITS
  767.  
  768.      This function affects the file that is currently being 
  769.      pointed at.  You will be presented with the prompt 
  770.      "Select attribute to toggle >" followed by the current 
  771.      default.  Your choices for attributes that may be 
  772.      switched are the archive, hidden and read-only bits.
  773.      
  774.      Once you have decided which attribute to toggle hit 
  775.      ENTER and if that bit was set it is now cleared and 
  776.      vice-versa.  Should you change your mind about 
  777.      toggling any of these attributes just hit the ESC 
  778.      key.  You must use this function to clear the read-
  779.      only bit of a file before it can be deleted or 
  780.      overwritten.
  781.      
  782.      Note that SFM stores the last value you selected so 
  783.      that next time you enter this function that is the 
  784.      default.  You should also note that you may select the 
  785.      attribute to toggle by typing the first character in 
  786.      its name (e.g. "a" for archive).
  787.  
  788. CLEARDSK : CLEAR A DISK'S FAT AND ROOT DIRECTORY
  789.  
  790.      This function effectively clears a disk of all 
  791.      information, leaving you with a fresh diskette.  It 
  792.      does not zero every byte on the disk as this would 
  793.      take quite a while and most people don't need that 
  794.      particular service anyway.
  795.      
  796.      Concerning the limitations of this function I must 
  797.      point out that it only works on drives A and B and 
  798.      requires that disks are formatted.  I doubt there is 
  799.      anyone who wants to use SFM to clear a fixed disk so 
  800.      the first limitation shouldn't be too restrictive.
  801.      
  802.      SFM does not actually verify a diskette when it clears 
  803.      one, but it comes close.  Since the disk must be 
  804.      formatted anyway SFM assumes that the FAT on the disk 
  805.      has the bad sectors already marked.  SFM simply 
  806.      preserves these marks and frees up all other sectors.
  807.  
  808.  
  809.                    Super File Manager - 17
  810.  
  811. MENU 2 : SWITCH TO MENU 2
  812.  
  813.      Menu two is the "super" in Super File Manager.  It 
  814.      contains all of the advanced functions that require 
  815.      special handling.  It is covered later in detail, for 
  816.      now I shall just mention that SFM makes sure the 
  817.      current directory is available before switching to 
  818.      menu 2.
  819.  
  820. QUIT : EXIT SUPER FILE MANAGER
  821.  
  822.      This function just plain quits.  There is no warning 
  823.      since the worst that could happen is that you would 
  824.      have to type "SFM" again to get back in.  Besides, an 
  825.      "Are you sure?" prompt is more often annoying than 
  826.      beneficial.
  827.  
  828.  
  829.                    Super File Manager - 18
  830.                        >> MENU TWO <<
  831.  
  832.  
  833.      Here are the less used, but more advanced functions.  
  834. These functions do not work directly on disk, but merely on 
  835. copies in memory.  If you are satisfied with changes you 
  836. have made you will have to tell SFM to update the disk 
  837. using the UPDATE function.  If you make a mistake you can 
  838. RELOAD the directory and start over.
  839.  
  840.      While in menu two you will be limited to a single 
  841. directory at a time.  This is done mostly because of the 
  842. extra memory required for these functions, but also to help 
  843. prevent mishaps and make keeping track of changes you have 
  844. made easier.  Another limitation is that you may not change 
  845. directories while in this menu, you will have to return to 
  846. menu one to do that.
  847.  
  848.      Also, there is no mask for menu two.  All files are 
  849. displayed including deleted files and the volume label if 
  850. present.  Notice that a deleted file does not show its 
  851. attributes.  SFM assumes that you don't care much about a 
  852. deleted file's attributes.
  853.  
  854. F9 : PICK UP FILE
  855.  
  856.      Since the menu two functions do not include any group 
  857.      operations this key is used a bit differently than in 
  858.      menu one.
  859.      
  860.      Pressing F9 will highlight the current entry.  Good, 
  861.      now what?  Well, now you can move this up or down 
  862.      (arrow keys) in the directory and the 'drop' it when 
  863.      it is in place with the F10 key or by pressing RETURN.
  864.      
  865.      Many people think it saves time if DOS can find a file 
  866.      right at the top of a directory.  By placing 
  867.      frequently accessed files towards the beginning of a 
  868.      directory you can cut the response time of DOS 
  869.      somewhat.  I suppose this is true, but I prefer a 
  870.      directory where I can find things.  In any case the 
  871.      function is there, use it for whatever reason suits 
  872.      your purpose.
  873.  
  874. F10 : DROP FILE
  875.  
  876.      Drops a file that has been 'picked up' using F9 or the 
  877.      PICK UP command mentioned below.
  878.  
  879. PICK UP : PICK UP FILE
  880.  
  881.      Same thing as F9, I just needed one more item to give 
  882.      menu two an even number of commands.
  883.  
  884.  
  885.                    Super File Manager - 19
  886. SORT : SORT DIRECTORY
  887.  
  888.      After choosing this option you are asked which field 
  889.      you would like to sort on.  The choices are name, 
  890.      extension, size, date & time or attribute.  You may 
  891.      select a field by stepping through the choices (SPACE 
  892.      BAR) or typing the first letter of the field.  After 
  893.      the field is selected type ENTER.  ESC will abort the 
  894.      sort function if you change your mind.
  895.      
  896.      The next prompt is for the sort order, either forward 
  897.      or reverse.  Selecting the order is done using the 
  898.      same method as selecting the field.  Forward is always 
  899.      from first to last, smallest to biggest, or earliest 
  900.      to latest according to the field.  Reverse, rather 
  901.      predictably, is the opposite.
  902.      
  903.      The fields are pretty much self-explanatory.  The date 
  904.      & time field selection sorts according to date first, 
  905.      then time if the dates match.  I combined them since I 
  906.      couldn't think of a good reason for keeping them 
  907.      separate.
  908.      
  909.      The attribute field the only one not self-
  910.      explanatory.  It sorts files in the following order:
  911.      
  912.                System files (if in the root directory)
  913.                .  directory
  914.                .. directory
  915.                Volume label
  916.                Normal directories
  917.                Normal files
  918.                System files (anywhere but root)
  919.                Hidden files
  920.                Deleted entries of any type 
  921.      
  922.      If you've tried sorting a directory already you 
  923.      probably noticed that the attribute sort is actually 
  924.      performed after every sort.  It has been included as a 
  925.      separate option for those times that you don't want 
  926.      any actual sort done, but would like to have entry 
  927.      types grouped together.  An example would be putting 
  928.      all of the subdirectories at the top without 
  929.      disturbing the order of the normal files.
  930.      
  931.      If, for some reason, you don't want the attribute sort 
  932.      ordering in a directory you will have to move the 
  933.      files into position one by one.  (Sorry, source code 
  934.      is available if this becomes a problem).
  935.  
  936.  
  937.                    Super File Manager - 20
  938. SORT : continued
  939.  
  940.      Finally, if you have a very long directory to sort you 
  941.      may notice that SFM can take quite a bit of time.  
  942.      This is because I decided to use a stable sorting 
  943.      routine (insertion sort).  The trade-off in time was 
  944.      worth it since directories seldom get longer than 100 
  945.      entries.
  946.      
  947.      An example:
  948.           If you first sort on name and then by extension, 
  949.           the files will be in alphabetical order within 
  950.           each group of extensions.
  951.  
  952. VOLLABEL : CREATE, DELETE OR CHANGE VOLUME LABEL
  953.  
  954.      Selecting this option will allow the setting of the 
  955.      volume label if the current directory is the root.  A 
  956.      volume label serves no purpose in any other directory 
  957.      since DOS ignores them elsewhere.
  958.      
  959.      If there is currently a volume label you are asked if 
  960.      it should be deleted, if you answer yes then that's 
  961.      it.  If it is not deleted you may rename the volume.  
  962.      If there is no current volume label you are prompted 
  963.      to enter a new one.  You may just press ENTER if you 
  964.      change your mind about creating or renaming the 
  965.      volume.
  966.      
  967.      Any eleven character string may be entered as a volume 
  968.      label.  You can even enter control characters if you 
  969.      wish.  Try entering ^G some time and then exit to DOS 
  970.      and get a directory.  Better rename it quickly, before 
  971.      it drives you bonkers.
  972.  
  973. RENAME : RENAME A DIRECTORY ENTRY
  974.  
  975.      Another rename command?  Yes, but much more powerful  
  976.      than the rename found in menu one.  The only type of 
  977.      entry you may not rename here are the directories that 
  978.      DOS reserves ("." and "..").
  979.      
  980.      No error checking is performed so you must be a little 
  981.      careful.  If you enter a character that is not valid 
  982.      to DOS you will not be able to access that file again 
  983.      until you give it a valid DOS name (have fun all you 
  984.      pranksters).  You must also watch out for duplicate 
  985.      file names.
  986.      
  987.      SFM will format the name as DOS would by inserting 
  988.      spaces before a period, truncating at 12 characters 
  989.      and converting all characters to upper case.
  990.  
  991.  
  992.                    Super File Manager - 21
  993. RENAME : continued
  994.  
  995.      The real reason for this command is much more 
  996.      functional.  I had a few disk errors once and some 
  997.      valuable files somehow ended up with a space in the 
  998.      middle of their names.  DOS wouldn't let me load or 
  999.      rename them.  This function allows access to any such 
  1000.      file.
  1001.  
  1002. RELOAD : FORCE SFM TO RELOAD THE DIRECTORY
  1003.  
  1004.      This option is available for those times you perform 
  1005.      some menu two function and decide afterwards that you 
  1006.      didn't really want to.  As mentioned earlier, changes 
  1007.      are made in memory while in menu two so it is a small 
  1008.      matter to restore what you started with.
  1009.  
  1010. UNDELETE : ATTEMPT TO RECOVER A DELETED FILE
  1011.  
  1012.      SFM will make a good guess as to what parts of the 
  1013.      disk belonged to a deleted file and then restores 
  1014.      those portions to it.  This function has the best 
  1015.      chance for success immediately after the file has been 
  1016.      deleted, and its chances are reduced drastically every 
  1017.      time you copy or delete a file on the disk.  Note that 
  1018.      this file recovery is analogous to the Norton Utility 
  1019.      called Quick Unerase.
  1020.      
  1021.      DOS saves very little information about a file in its 
  1022.      directory entry and this makes a recovery operation a 
  1023.      bit difficult.  The only data that we have are where 
  1024.      the file started and how long it was.  SFM basically 
  1025.      starts in the same place as the file did before it was 
  1026.      deleted and starts adding free disk clusters as they 
  1027.      are found until there are enough to cover the size 
  1028.      specified in the file's entry.
  1029.      
  1030.      SFM knows that a file cannot be recovered for sure if 
  1031.      the first cluster was overwritten by something.  There 
  1032.      is no way to be certain that a file has been truly 
  1033.      recovered, short of having you verify each cluster as 
  1034.      it is added to the file.  This is beyond the scope of 
  1035.      SFM and would be extremely tedious at any rate.  
  1036.      Should you require this type of service I can suggest 
  1037.      that you try Norton's Utilities.
  1038.      
  1039.      If the recovery operation was successful you get a 
  1040.      message stating as much, and are asked to enter a new 
  1041.      first character.  SFM requires that the character be 
  1042.      valid for DOS and that you do not create a duplicate 
  1043.      file name.
  1044.  
  1045.  
  1046.  
  1047.                    Super File Manager - 22
  1048. PURGE : REMOVE DELETED FILES FROM DIRECTORY
  1049.  
  1050.      This is just a cleanup function.  If you use the menu 
  1051.      two functions very often you probably get quite tired 
  1052.      of seeing a bunch of deleted files displayed.  Unless, 
  1053.      of course, one of the deleted files happens to be one 
  1054.      you wish to recover.  However, in most cases you can 
  1055.      do without the clutter and you can get rid of them 
  1056.      quickly by using this function.  All the purge does is 
  1057.      move the deleted files to the rear and then zeros out 
  1058.      their entries so they appear to never have been used.
  1059.  
  1060. DISKINFO : TECHNICAL INFORMATION ABOUT CURRENT DISK
  1061.  
  1062.      This is some of the information that SFM uses in its 
  1063.      disk operations that may be of interest to you.  If 
  1064.      you happen to know what these values are for your 
  1065.      system's drives I would suggest comparing them.  If 
  1066.      they do not match you should avoid using SFM's menu 
  1067.      two functions on anything important until you have a 
  1068.      chance to track down the problem (either you were 
  1069.      mistaken or SFM doesn't recognize your disk 
  1070.      configuration for some reason).
  1071.      
  1072.      The disk information displayed by SFM is taken 
  1073.      directly from DOS and therefore usually accurate.  If 
  1074.      not, the problem may be caused by an incompatible 
  1075.      version of DOS.  As I understand things, SFM should be 
  1076.      valid for DOS versions 2.0 through 3.2 and hopefully 
  1077.      any that appear in the future.  SFM was developed 
  1078.      under MS-DOS 3.2.
  1079.  
  1080. UPDATE : WRITE CHANGES BACK TO DISK
  1081.  
  1082.      As you have probably read ten times now, menu two 
  1083.      functions will not make changes directly to the disk 
  1084.      until you specifically tell SFM to do so.
  1085.      
  1086.      One distinct word of warning: don't change disks while 
  1087.      in menu two.  If you happen to update the wrong disk 
  1088.      you will wipe out the old file allocation table, 
  1089.      losing all data that used to be on that disk.  If 
  1090.      you're curious though, try it some time with a couple 
  1091.      of test disks.
  1092.  
  1093. MENU ONE : RETURN TO MENU ONE
  1094.  
  1095.      Just like it says.  The only things to note here are 
  1096.      that you will be notified if the directory was changed 
  1097.      since last updated and that the directory will be 
  1098.      reloaded if necessary before returning.
  1099.  
  1100.  
  1101.                    Super File Manager - 23
  1102.                     >> ABORT ON ERROR <<
  1103.  
  1104.  
  1105.      It is not very likely, but you may at some time see a 
  1106. screen that starts out something like "An error not handled 
  1107. by this program has occurred."  If this happens you will 
  1108. see a couple of lines that follow that tell where the 
  1109. program aborted and why.
  1110.  
  1111.      The message you are most likely to see is one that 
  1112. says "InitVars : Couldn't load default directory".  This 
  1113. will occur right after answering the first prompt about 
  1114. system colors.  SFM was initializing variables and aborted 
  1115. when it couldn't load a directory to start with.  All it 
  1116. means is that SFM requires that you run it from a valid 
  1117. directory.
  1118.  
  1119.      Another possibility would be running SFM with too 
  1120. little memory.  You will receive a message that says either 
  1121. "LoadFAT : Insufficient memory to load FAT" or "ClearFAT : 
  1122. Insufficient memory for temporary buffer."  If possible, 
  1123. you should remove some of the resident utilities on your 
  1124. system and try again.
  1125.  
  1126.      Any other error conditions are handled through a 
  1127. routine that tells you the type of error and the error 
  1128. number.  I doubt you will ever get such a message, but I 
  1129. will cover it just the same.  Here is a hypothetical 
  1130. example:
  1131.  
  1132.           AbortOnError :
  1133.             A user break (^C) has occurred.
  1134.             Error number = $01
  1135.                  Address = $xxxx
  1136.  
  1137. Unless you get the source code and recompile SFM with the 
  1138. "{$C+}" compiler directive you will never actually get this 
  1139. message.  SFM disables user breaks since they aren't needed 
  1140. and they slow down the display screens.
  1141.  
  1142.      Note that if you receive an AbortOnError message and 
  1143. you have the source code for SFM you can track down exactly 
  1144. where the error occurred.  Just run Turbo, type "W" and 
  1145. enter "SFM" as the workfile name.  Then type "O" to enter 
  1146. the Options menu and then "F" for the Find run-time error 
  1147. option.  When asked for the address type in the number that 
  1148. was displayed with the AbortOnError message.
  1149.  
  1150.      This is a helpful function for persons interested in 
  1151. altering SFM.  Should an error result from a change, the 
  1152. program exits in an orderly fashion and resets those 
  1153. portions of the system it altered back to what they were 
  1154. (see the technical documentation about interrupt handlers).
  1155.