home *** CD-ROM | disk | FTP | other *** search
/ Programmer 7500 / MAX_PROGRAMMERS.iso / PROGRAMS / UTILS / HARDDISK / HDTEST2.ZIP / DIREDISH.EXE / DIREDIT.DOC next >
Encoding:
Text File  |  1989-11-28  |  52.6 KB  |  1,146 lines

  1.           
  2.           Documentation for DIREDIT V3.02         Copyright 1989, P. R. Fletcher
  3.           ________________________________       _______________________________
  4.           
  5.  
  6.  
  7.  
  8.  
  9.  
  10.  
  11.  
  12.  
  13.  
  14.                                 DIREDIT - Directory Editor
  15.                                 __________________________
  16.  
  17.                            Copyright (1985-1989), P. R. Fletcher
  18.                            _____________________________________
  19.                                     All Rights Reserved
  20.                                     ___________________
  21.  
  22.  
  23.  
  24.                         Distributed by:
  25.  
  26.                                P. R. Fletcher (Software)
  27.                                1515 West Montgomery Avenue
  28.                                Rosemont
  29.                                PA 19010
  30.  
  31.  
  32.  
  33.                                   _______
  34.                              ____|__     |               (tm)
  35.                           --|       |    |-------------------
  36.                             |   ____|__  |  Association of
  37.                             |  |       |_|  Shareware
  38.                             |__|   o   |    Professionals
  39.                           -----|   |   |---------------------
  40.                                |___|___|    MEMBER
  41.  
  42.            
  43.           Documentation for DIREDIT V3.02         Copyright 1989, P. R. Fletcher
  44.           ________________________________       _______________________________
  45.           
  46.                                      TABLE OF CONTENTS
  47.                                      _________________
  48.  
  49.  
  50.           User-Supported Software                                    1
  51.           Introduction                                               2
  52.           Hardware and Software Requirements                         4
  53.           Running DIREDIT                                            5
  54.           The Screen Display                                         7
  55.           Editing the Directory                                      7
  56.           Sorting the Directory                                      9
  57.           Limitations and Restrictions                              10
  58.           Bugs and Other Unpleasant Subjects                        10
  59.           Changes from Previous Versions                            12
  60.           APPENDICES                                                14
  61.             A - Summary of Single-Key Commands                      14
  62.             B - Known Hardware Incompatibilities                    15
  63.             C - Using DIREDIT with RAMdisks                         16
  64.           Registration Form                                         17
  65.            
  66.           Documentation for DIREDIT V3.02         Copyright 1989, P. R. Fletcher
  67.           ________________________________       _______________________________
  68.           
  69.                                   USER-SUPPORTED SOFTWARE
  70.                                   _______________________
  71.  
  72.           Much of the software which is available for your computer has, in the
  73.           past, been produced and sold on the assumption that you are a crook
  74.           and that you will take any available opportunity to cheat software
  75.           writers and vendors out of their rightful reward. Such software was
  76.           copy-protected within an inch of its (and your computer's) life and
  77.           was priced at a level which still guaranteed its producers a profit
  78.           even if four or five illegal copies were made for each one sold.
  79.           Thankfully, prices of commercial software have (for the most part)
  80.           come down somewhat, and copy-protection is becoming much less
  81.           prevalent, but buying such software remains something of a lottery -
  82.           you often cannot be sure that the software does what you want in the
  83.           way you want it done until you have paid for it. User-supported
  84.           software is different. You may have got a copy of this program free
  85.           from a friend or a bulletin board or (for a nominal fee) from a users'
  86.           group or software library. In any case, you have a perfectly legal
  87.           working copy of DIREDIT. You are encouraged to make as many copies of
  88.           the package as you like and to distribute them to all your friends.
  89.           If, after trying the program out, you find that it is useful and want
  90.           to continue to keep and use it, you must register your copy by sending
  91.           the registration fee ($20.00, unless you are already a registered user
  92.           of HDTEST, in which case it is $10.00) together with the completed
  93.           registration form, to the address on the form. Only your conscience
  94.           can make you do this (although you are probably breaking the law if
  95.               ____                                                           
  96.           you don't), but bear in mind that the distributors of "user-supported"
  97.           software are making the assumption that you are honest and willing to
  98.           pay a reasonable price for a useful program, many commercial software
  99.           vendors, on the other hand, would still apparently rather believe you
  100.           are a crook. You can decide who you would rather prove right.
  101.           Registered users will be entitled to support, upgrades, and help with
  102.           DIREDIT-related problems (including telephone support) for a year from
  103.           the date of registration.
  104.  
  105.           The author of this program is a member of the Association of Shareware
  106.           Professionals (ASP).  ASP wants to make sure that the shareware
  107.           principle works for you. If you are unable to resolve a shareware-
  108.           related problem with an ASP member by contacting the member directly,
  109.           ASP may be able to help. The ASP Ombudsman can help you resolve a
  110.           dispute or problem with an ASP member, but does not provide technical
  111.           support for members' products. Please write to the ASP Ombudsman at
  112.           P.O. Box 5786, Bellevue, WA 98006 or send a Compuserve message via
  113.           easyplex to ASP Ombudsman 70007,3536"
  114.  
  115.  
  116.  
  117.  
  118.  
  119.  
  120.  
  121.  
  122.  
  123.  
  124.  
  125.  
  126.  
  127.  
  128.  
  129.           
  130.           
  131.                                           Page 1 
  132.            
  133.           Documentation for DIREDIT V3.02         Copyright 1989, P. R. Fletcher
  134.           ________________________________       _______________________________
  135.           
  136.                                        INTRODUCTION
  137.                                        ____________
  138.  
  139.           DIREDIT is a program which allows you to "edit" DOS directories. There
  140.           are a large number of programs, some in the public domain, others
  141.           available as components of commercial utility packages (e.g. the
  142.           Norton Utilities (TM)), which allow directories to be sorted in
  143.                                                                 ______   
  144.           various ways (by filename, by file type ("extension"), by modification
  145.           date, by size), but DIREDIT was initially one of the very few which
  146.           also allowed the user to specify an arbitrary order and/or to move
  147.           individual directory entries around at will. Although this capability
  148.           has now become more common, I believe (and users have told me) that
  149.           DIREDIT's "pick it up and move it" implementation is more convenient
  150.           than the approaches used by others. DIREDIT also displays the
  151.           directory in a very compact manner, with up to 80 file-names visible
  152.           on the screen at once, but allows you to see the full file description
  153.           for any entry simply by moving a cursor to the name.
  154.  
  155.           You may reasonably ask why you should care how your directories are
  156.           arranged - one answer to this question depends on the fact that the
  157.           order in which subdirectories and files are listed in the order in
  158.           which DOS searches through them (when asked to find a data file or
  159.           executable program). It follows from this that programs and data files
  160.           will be accessed fastest if they appear at the top of the directory
  161.           listing of the subdirectory in which they are found, and also that
  162.           subdirectories (especially those which are specified in your PATH
  163.           command) should, for fast access, be at the top of the root directory
  164.           listing. On the other hand, many people find it easier to find a file
  165.           that they are searching for if the directory is sorted in some other
  166.           way. The advantages (in this context) of alphabetical sorts by name
  167.           and/or type are obvious, but sorting by size or date/time (most
  168.           recently modified files at the bottom or top) can also sometimes be
  169.           useful.
  170.  
  171.           You can use DIREDIT for both purposes - arranging your directories on
  172.           disk for efficient access and then resorting them temporarily on the
  173.           screen when searching for a file without (necessarily) saving the
  174.           resorted directory to disk.
  175.  
  176.           Although a small number of people have Registered earlier versions of
  177.           DIREDIT, and most of these have been very enthusiastic about the
  178.           program, it has been much less popular than HDTEST, my other Shareware
  179.           offering. Part of the reason for this may have been that the Shareware
  180.           version of the program, while fully functional, would only work on a
  181.           restricted range of (IBM BIOS compatible) devices. To investigate this
  182.           possibility, I have decided to change the way I distribute DIREDIT.
  183.           This version of DIREDIT is (at the time of its release) the most
  184.           recent version - the previous absolute distinction between Shareware
  185.           and Registered versions has been abandoned, and any substantial future
  186.                                                               ___________       
  187.           upgrades will result in new Shareware releases. The DIREDIT
  188.           distribution "package" is "User-supported Software", and may be copied
  189.           and distributed freely for evaluation under the normal "Shareware"
  190.           conditions. Registration as a user of DIREDIT entitles you to receive
  191.           the next major upgrade on disk, to be notified of the availability of
  192.           future upgrades, bug fixes, newly discovered incompatibilities, etc.,
  193.           and to ask for (and get) necessary help in adapting the program to
  194.           work on your hardware. I cannot guarantee to make DIREDIT work with
  195.           every possible combination of hardware and operating system software,
  196.           but I will promise to try to solve problems as they come up, and I
  197.           
  198.           
  199.                                           Page 2 
  200.            
  201.           Documentation for DIREDIT V3.02         Copyright 1989, P. R. Fletcher
  202.           ________________________________       _______________________________
  203.           
  204.           will return your registration fee if I cannot support the program on
  205.           your system.  Support is available to registered users only by mail to
  206.                                              ________________________           
  207.           me at 1515 West Montgomery Avenue, Rosemont, PA 19010, by BIXmail (to
  208.           pfletcher), and by Compuserve EMail (to 72255,305).  Please bear in
  209.           mind that my willingness and ability to continue to support and
  210.           enhance these programs will be (to some extent) inversely dependent on
  211.           the number of questions I get that could be answered by reading the
  212.           documentation(!). Telephone support is also available to Registered
  213.           Users.
  214.  
  215.           DIREDIT was written principally in C, compiled by the Microsoft C
  216.           compiler (Version 5.10) using its "small" memory model, and linked
  217.           with code from the distributed Microsoft C object libraries using the
  218.           Microsoft LINK program (Version 4.06).  Additional assembly language
  219.           routines were assembled by the Microsoft MASM Macro Assembler (Version
  220.           5.10). Portions of the distributed program are consequently Copyright
  221.           (C) by Microsoft Corp., 1985 - 1988. All rights reserved. These
  222.           portions are used under the terms of a license from Microsoft Corp.
  223.  
  224.           DIREDIT was written with care and has been tested on a number of
  225.           different systems.  I cannot, however, give any guarantee as to their
  226.           performance on a specific system, nor can I accept liability for any
  227.           actual or consequential loss resulting from their use.  The program
  228.           may only be used and/or copied in its original form. Unauthorised
  229.           modifications and/or the use of all or part of the program in other
  230.           software, commercial or otherwise, are strictly prohibited.
  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.  
  261.  
  262.  
  263.           
  264.           
  265.                                           Page 3 
  266.            
  267.           Documentation for DIREDIT V3.02         Copyright 1989, P. R. Fletcher
  268.           ________________________________       _______________________________
  269.           
  270.                              HARDWARE & SOFTWARE REQUIREMENTS
  271.                              ________________________________
  272.  
  273.           DIREDIT makes a number of assumptions about the environment in which
  274.           it is operating. The program will, generally speaking, abort with an
  275.           informative error message if it finds one of these assumptions to be
  276.           untrue! It requires MS/PC-DOS 2.0 or above and at least 96 Kb of free
  277.           memory (the exact amount required depends on the size of the target
  278.           device and directory) to run. The device on which the target directory
  279.           is found must be recognizable by DOS as a standard "block" device,
  280.           addressed by one of the normal device names ("A:" through  "Z:").
  281.           Versions of DIREDIT before V2.00 used BIOS calls to read and write the
  282.           directory information, restricting its use to floppy disks and those
  283.           hard disks (the majority, in fact) whose BIOSes were capable of
  284.           handling (at least) normal disk reads and writes in a way that was
  285.           compatible with that documented for the XT and AT disk adapters in
  286.           IBM's technical documentation. This version of DIREDIT uses only DOS
  287.           calls, and should, therefore, also be usable on those hard disks and
  288.           other storage devices which are not BIOS compatible with XT/AT disks
  289.           and/or require special drivers to be installed. RAMdisks present
  290.           special problems, because their device drivers may not obey all the
  291.           rules laid down by Microsoft for block-replaceable devices
  292.           (particularly with regard to the structure and/or presence of a "boot
  293.           sector" at the lowest numbered sector on the device). If you have
  294.           problems running DIREDIT on a RAMdisk, you should read Appendix C for
  295.           a more detailed discussion of likely problems and their solution.
  296.  
  297.           Users of non IBM-compatible MS-DOS systems should scan Appendix B
  298.           before proceeding, to check that no special considerations apply to
  299.           the running of the program on their systems. Owners of 99.99%
  300.           IBM-compatible "clones" should not have any problems.  DIREDIT will
  301.           not run in the DOS compatibility box under OS/2 (OS/2 does not support
  302.           ___                                                                   
  303.           the DOS INT 25/26 disk read/write interrupts), and should be used only
  304.           with great caution under other DOS-compatible multi-user and/or multi-
  305.           tasking OSes.
  306.  
  307.  
  308.  
  309.  
  310.  
  311.  
  312.  
  313.  
  314.  
  315.  
  316.  
  317.  
  318.  
  319.  
  320.  
  321.  
  322.  
  323.  
  324.  
  325.  
  326.  
  327.  
  328.  
  329.  
  330.           
  331.           
  332.                                           Page 4 
  333.            
  334.           Documentation for DIREDIT V3.02         Copyright 1989, P. R. Fletcher
  335.           ________________________________       _______________________________
  336.           
  337.                                    RUNNING DIREDIT
  338.                                    _______________
  339.  
  340.           Although DIREDIT will, in practice, coexist happily with most resident
  341.                                                                    ____         
  342.           software ("Pop-ups", desk utilities, resident spelling checkers,
  343.           etc.), the total impossibility of my checking every one of the
  344.           hundreds of commercial, shareware, and PD resident utilities for
  345.           compatibility forces me to suggest that you remove such software from
  346.           memory before running DIREDIT. You should never use any resident
  347.                                                     _____                 
  348.           software that may read or write to the device you are "editing" from
  349.                                                                           ____
  350.           within DIREDIT. Similarly, you should not run DIREDIT under a DOS-
  351.           ______________                                                    
  352.           compatible multi-user or multi-tasking operating system unless you are
  353.           absolutely sure that no other tasks and/or users are accessing the
  354.           device that it is working on.
  355.  
  356.           The program is invoked with the command:
  357.  
  358.                                   DIREDIT [pathname]
  359.  
  360.           If a pathname is not specified on the command line, the program will
  361.           default to the current directory. Otherwise, any valid DOS path
  362.           specification may be used (some examples are:  A:\; A:\SUB1\SUB2;
  363.           \SUB1\SUB2 {referred to the root directory of the current device};
  364.           SUB3\SUB4 {starting from the current directory}). Note that there is
  365.           one difference between the way DIREDIT interprets path specifications
  366.           and the way DOS normally does. DIREDIT will interpret a specification
  367.           which contains a drive but no path (e.g. A:) as referring to the root
  368.                                                                            ____
  369.           directory on the specified drive, rather than the default directory on
  370.                                                             _______             
  371.           that drive (if one has been named in a "CD" command).
  372.  
  373.           DIREDIT will display its copyright screen and pause until you press a
  374.           key - it will then read in the directory to be edited and check to see
  375.           whether the first file or files in the directory have the "System"
  376.           attribute. If they do (typically true for the files that contain the
  377.           normally resident component of the operating system, which are to be
  378.           found in the root directory of a bootable disk), DIREDIT asks whether
  379.           you wish to exclude these files from directory sort operations. You
  380.           should not override the default ("Y") answer to this question unless
  381.           you are sure you know what you are doing (!) - if the operating system
  382.           boot files are not first in the directory, the disk will cease to be
  383.                          ___                                                  
  384.           bootable. After you have responded to this question (assuming that it
  385.           was necessary for DIREDIT to ask it) the program will switch to its
  386.           normal display mode.
  387.  
  388.           On the upper 20 lines of the terminal screen are displayed up to 80
  389.           "identifier blocks", each comprising an ID number (which initially
  390.           corresponds to the position of the directory entry in the directory)
  391.           and a file name. An inverse video box cursor, initially positioned
  392.           over the first (top lefthand) block, indicates the current entry. This
  393.           box can be moved to highlight any visible block by using the arrow
  394.           keys. The "Cursor->" display line at the bottom of the screen shows
  395.           the full description of the file or directory whose name is in the
  396.           current block. In addition to "normal" directory information (name,
  397.           creation date and time, size) this line shows whether any of the DOS
  398.  
  399.  
  400.  
  401.  
  402.  
  403.           
  404.           
  405.                                           Page 5 
  406.            
  407.           Documentation for DIREDIT V3.02         Copyright 1989, P. R. Fletcher
  408.           ________________________________       _______________________________
  409.           
  410.           file attribute bits are set. Set bits are indicated by the appearance
  411.           of one or more upper-case letters at the end of the line. The
  412.           possibilities are:
  413.  
  414.           [A]rchive - this indicates that the file has been modified since it
  415.           was last backed up by the DOS BACKUP utility. Under DOS 3.2, this bit
  416.           can also be set or reset by using the ATTRIB command.
  417.  
  418.           [H]idden - this indicates that the file has been made invisible to
  419.           normal directory searches. The system files on a bootable disk will
  420.           always be labelled as "hidden" (as well as "system"), as will some
  421.           files created by software copy-protection systems.
  422.  
  423.           [R]eadonly - this indicates that the file can be "seen" and read but
  424.           not written to or deleted. Under DOS 3.x, this bit can be set or reset
  425.           using the ATTRIB command.
  426.  
  427.           [S]ystem - this indicates that the file is a "system" file. DOS does
  428.           not currently make any special use of this bit, which was inherited
  429.           from CP/M, but this may change in future revisions. "System" files are
  430.           always also labelled "hidden" to make them invisible to normal
  431.           directory searches.
  432.  
  433.           If there are less than 81 active directory entries (the normal case!),
  434.           all will be displayed at once, otherwise only the first 80 will
  435.           (initially) be visible.
  436.  
  437.  
  438.  
  439.  
  440.  
  441.  
  442.  
  443.  
  444.  
  445.  
  446.  
  447.  
  448.  
  449.  
  450.  
  451.  
  452.  
  453.  
  454.  
  455.  
  456.  
  457.  
  458.  
  459.  
  460.  
  461.  
  462.  
  463.  
  464.  
  465.  
  466.  
  467.  
  468.           
  469.           
  470.                                           Page 6 
  471.            
  472.           Documentation for DIREDIT V3.02         Copyright 1989, P. R. Fletcher
  473.           ________________________________       _______________________________
  474.           
  475.                                     THE SCREEN DISPLAY
  476.                                     __________________
  477.  
  478.           The names and ID numbers of up to 80 files and/or subdirectories are
  479.           displayed on the top 20 lines of the screen. If the directory being
  480.           edited contains more than this number of entries, DIREDIT allows you
  481.           to "page" up and down within it so that you can inspect or operate on
  482.           any entry. In this case (more than 80 files in the directory), the
  483.           screen is divisible into two windows through an imaginary line drawn
  484.           vertically down its center. The left-hand window will always contain
  485.           40 blocks; the right-hand one will contain up to 40 more. Each window
  486.           may be positioned (using the <PgUp>, <PgDn>, <Home>, and <End> keys)
  487.           anywhere within the directory, except that the two windows may never
  488.           overlap and that the left hand window must always remain "below" the
  489.           right hand one in the directory. When the program starts up, the two
  490.           windows are "locked", so that they move together. Pressing the "L" key
  491.           toggles the lock so that they can move independently.
  492.  
  493.           <PgUp> (or <F3>) moves the current window (i.e. the one which contains
  494.           the block cursor) up by twenty entries.
  495.  
  496.           <PgDn> (or <F4>) moves the current window down by twenty entries.
  497.  
  498.           <Home> moves the current window as far towards the beginning of the
  499.           directory as possible (so that the first 40 (or 80) entries are
  500.           shown).
  501.  
  502.           <End> moves the current window as far towards the bottom of the
  503.           directory as possible (so that the screen shows the last 21 to 40 (or
  504.           61 to 80) entries).
  505.  
  506.           If the windows are not "locked" together and an attempted window move
  507.           would otherwise cause them to overlap (i.e. the inactive window is
  508.           immediately adjacent to the current one in the direction of the
  509.           attempted move) OR the windows are "locked" together (which is the
  510.           default case), both windows are moved. If an attempted window move
  511.           would cause either window to go off the top or bottom of the file, it
  512.           does not take place and the command is simply ignored (no error
  513.           message is generated). Note that window moves do not normally affect
  514.           the position of the cursor within the window.
  515.                                      _________________ 
  516.  
  517.           The lower part of the screen display shows additional details of the
  518.           directory entry on which the cursor is positioned, similar details of
  519.           the entry that is being "moved" (if any), and other information. The
  520.           bottom line shows the full pathname of the directory being edited. The
  521.           last character on this line, which is normally blank, is changed to an
  522.           asterisk (*) if any changes have been made to the directory being
  523.           edited.
  524.  
  525.                                    EDITING THE DIRECTORY
  526.                                    _____________________
  527.  
  528.           The simplest way of making small changes to the order of files in the
  529.           directory is by moving individual entries. An individual entry is
  530.           moved by positioning the cursor on the identifier block, "picking it
  531.           up" by pressing the <Del> key, positioning the cursor at the point to
  532.           which the entry is to be moved, and "inserting" it there by pressing
  533.           the <Ins> key. The full description of the entry that is in the
  534.           process of being moved is shown on the "Moving->" display at the
  535.           bottom of the screen. You may not exit (which causes the disk
  536.           
  537.           
  538.                                           Page 7 
  539.            
  540.           Documentation for DIREDIT V3.02         Copyright 1989, P. R. Fletcher
  541.           ________________________________       _______________________________
  542.           
  543.           directory to be updated, and would, in this case, cause the "moving"
  544.           entry to be lost) while an entry is being moved - you must replace it
  545.           somewhere first. An entry which is being moved is also automatically
  546.           put back (at the current cursor position) before a sort operation is
  547.           carried out. Note that you can move "System" entries from the
  548.                                      ___                               
  549.           beginning of the root directory manually, but you will be prompted for
  550.                                           ________                              
  551.           confirmation before you are allowed to "pick them up".
  552.  
  553.           A number of other single-key commands are implemented, as described
  554.           below. Many of them trigger short dialogues, and the commands with
  555.           potentially far-reaching effects usually require confirmation before
  556.           you are allowed to do something you might regret. Note that, although
  557.           the editor commands do not require that the <Return> key be pressed
  558.           also, responses to prompts always do.
  559.  
  560.           "D" - change the date stamp on the current file. The program prompts
  561.           with the current date stamp - the new date should be entered in the
  562.           same format. Invalid dates will be rejected but any valid date between
  563.           January 1, 1980 and December 31, 2099 may be entered. <CR> retains the
  564.           current date stamp.
  565.  
  566.           "L" - toggle the "lock" which (by default) forces both windows to move
  567.           together. This has no perceptible effect unless there are more than 80
  568.           entries in the directory.
  569.  
  570.           "M" - display the next of a series of single-line "aides-memoire" to
  571.           available commands which appear on the 23rd line of the screen.
  572.           Repeatedly pressing this key will cycle through lines describing all
  573.           valid commands.
  574.  
  575.           "N" - edit a new directory (you are automatically given the option of
  576.           writing the one currently being edited to disk first, if changes have
  577.           been made to it).
  578.  
  579.           "Q" - quit the program without updating the current directory. If you
  580.                                  _______                                       
  581.           have made any changes during the current session, the program will
  582.           prompt for confirmation before actually quitting.
  583.  
  584.           "R" - rename the current file. The program will prompt you to enter
  585.           the new name. Invalid names (too long, containing illegal characters,
  586.           etc.) will be rejected, as will a name that is the same as one of
  587.           another file entry in the current directory. <CR> retains the current
  588.           name.
  589.  
  590.           "S" - sort the directory (see below).
  591.  
  592.           "X" - exit and (if any changes have been made) update the current
  593.           directory.
  594.  
  595.           "?" or <F1> - display help text.
  596.  
  597.  
  598.  
  599.  
  600.  
  601.  
  602.  
  603.  
  604.           
  605.           
  606.                                           Page 8 
  607.            
  608.           Documentation for DIREDIT V3.02         Copyright 1989, P. R. Fletcher
  609.           ________________________________       _______________________________
  610.           
  611.                                     SORTING THE DIRECTORY
  612.                                     _____________________
  613.  
  614.           The directory display (and, ultimately, the directory on disk) may be
  615.           sorted by date, filename, extension, or file size, in ascending or
  616.           descending order. It may also be rearranged in any other arbitrary
  617.           order you care to specify.
  618.  
  619.           When you press "S", the program will pause for two seconds to give you
  620.           time to press another key, indicating the type of sort required. If
  621.           you do not type anything within the time allowed, or if the key you
  622.           press does not indicate a valid choice, the program will determine
  623.           your choice by asking you a series of questions. The choices (in the
  624.           order in which they are presented) are:
  625.  
  626.           "[O]ptimal" order - This sorts the directory for greatest efficiency
  627.           (under normal circumstances). Subdirectories are put first, in
  628.           alphabetical order by name, then come executable files (those with
  629.           .BAT, .COM, and .EXE extensions) sorted in alphabetical order by
  630.           extension and name. Finally come the rest of the files in the
  631.           directory, sorted alphabetically by name.
  632.  
  633.           [U]ser-Specified Order - this option allows you to rearrange the file
  634.           entries in an arbitrary order. You will be prompted to enter two lists
  635.           of file numbers (the numbers displayed next to the filenames on the
  636.           screen). The first list should contain the numbers of files which you
  637.           would like to move to the top of the directory (in the order in which
  638.           you want them to appear there) - the second should contain the numbers
  639.           of files which you want to move to the bottom, also in the order in
  640.           which they are to appear. Either list may be empty (just press
  641.           <Return>). The lists should contain only the file numbers, as decimal
  642.           integers, separated by one or more spaces and/or tabs.
  643.  
  644.           Sort by [F]ilename - sorts alphabetically by name and extension.
  645.  
  646.           Sort by [E]xtension - sorts by extension first, then by filename (for
  647.           files with the same extension).
  648.  
  649.           Sort by [D]ate/Time - sorts by file modification date, then by
  650.           modification time.
  651.  
  652.           Sort by file [S]ize - does what it says (!)
  653.  
  654.           For all of these options except "user-specified order", the program
  655.                                    ______                                    
  656.           also prompts you to specify whether you want the directory sorted in
  657.           [A]scending or [D]escending order before it completes the sort.
  658.           Ascending order is from A to Z for alpha sorts, from past to future
  659.           for the date/time sort, and from small to big for the size sort.
  660.           Descending order is, of course, the reverse in each case.
  661.  
  662.           "System" files at the beginning of a directory will be excluded from
  663.           all sorts unless specifically included (by a "N" response when the
  664.                                         __                                  
  665.           program asks you whether you want them excluded). In fact, if you have
  666.           moved such a file manually to some other position, any sort will
  667.           result in its being put back where it came from.
  668.  
  669.  
  670.  
  671.  
  672.           
  673.           
  674.                                           Page 9 
  675.            
  676.           Documentation for DIREDIT V3.02         Copyright 1989, P. R. Fletcher
  677.           ________________________________       _______________________________
  678.           
  679.                                       IMPORTANT NOTE
  680.                                       ______________
  681.  
  682.           You should review the directory you have been editing (e.g. by using
  683.           the DOS DIR command) after exiting from DIREDIT, in order to check
  684.           that it looks the way it should. If it doesn't look right, before
  685.                                                                      ______
  686.           doing anything else, run CHKDSK or reboot the system and then check it
  687.           ___________________                                                   
  688.           again - if it still doesn't look right, you will have to DIREDIT it
  689.           again. These precautions are advised because DOS keeps a number of
  690.           sectors worth of data (including directory data) from your disks in
  691.           memory (the actual number of sectors held in this way is set by the
  692.           "BUFFERS=..." line in CONFIG.SYS. If you use DIREDIT (which reads and
  693.           writes the directory sectors using low-level DOS functions) to change
  694.           a directory that DOS is holding in memory, the BUFFERed image of the
  695.           directory is not automatically updated. This deficiency in DOS
  696.                        ___                                              
  697.           presents a potential problem because, if you were then to do something
  698.           that changed the directory (write a new file, change an old file,
  699.           etc.) from within DOS, DOS would make the appropriate changes to its
  700.           copy of the (old) directory and write it back over the new directory.
  701.                        ___                              ____                   
  702.           Because there appears to be no way of telling DOS that the contents of
  703.           its sector buffers may be invalid, DIREDIT attempts to flush them
  704.           (before exiting) by performing a number of manoeuvres which result in
  705.           multiple DOS disk read operations. It is possible (though not very
  706.                             ____                                            
  707.           likely) that there are circumstances under which DIREDIT will fail to
  708.           flush the DOS sector buffers when it terminates - running CHKDSK
  709.           always seems to flush them successfully, and rebooting is guaranteed
  710.           to do so. Because other disk cache programs intercept all DOS level
  711.                                                                 ___          
  712.           disk read and write calls, they should present no problems to DIREDIT.
  713.                                                          __                     
  714.  
  715.  
  716.                                LIMITATIONS AND RESTRICTIONS
  717.                                ____________________________
  718.  
  719.           The current version of DIREDIT has a few theoretical limitations,
  720.           which result from the way data is stored internally by the program.
  721.           None of them is likely to be encountered in normal use of the program
  722.           on any but the most bizarre hardware. The program's memory usage
  723.           depends more on the size of the target device than on that of the
  724.                                                  ______                    
  725.           target directory, but it should operate happily with any conceivable
  726.                  _________                                                    
  727.           device and directory size on any system with at least 256 Kb of free
  728.           memory (over and above that occupied by DOS), and will usually require
  729.           much less free memory than this.
  730.  
  731.                             BUGS AND OTHER UNPLEASANT SUBJECTS
  732.                             __________________________________
  733.  
  734.           Although, like all programmers, I would like to think that my program
  735.           was perfect, it is possible that there are a few bugs lurking in its
  736.           depths, and quite likely that there exists some combination of
  737.           software and hardware which DIREDIT cannot figure out and/or cope
  738.           with. If you think you have found a bug and/or if you cannot get the
  739.           program to work on your system, proceed as follows:
  740.  
  741.           1) Reread this documentation! Make sure that you are doing exactly
  742.           what the documentation and/or program prompts tell you to do. Make
  743.           sure (if you are trying to edit a directory on a drive with removable
  744.           media) that the media is not write-protected.
  745.  
  746.           2) Boot your system from a "virgin" DOS disk - preferably a copy of
  747.           your DOS distribution disk - and try to run DIREDIT again. If the
  748.           program runs in this limited environment, but not in your normal DOS
  749.           
  750.           
  751.                                          Page 10 
  752.            
  753.           Documentation for DIREDIT V3.02         Copyright 1989, P. R. Fletcher
  754.           ________________________________       _______________________________
  755.           
  756.           environment, try reconstructing the system under which it failed (by
  757.           adding things one by one until the problem recurs) and let me know
  758.           about the incompatibility.
  759.  
  760.           3) If the above approaches do not help, or if they appear to confirm
  761.           an undocumented incompatibility, send me as detailed a description of
  762.           the problem as possible and I will do my best to diagnose and fix it.
  763.           A bug/incompatibility report should always include a full description
  764.                                               ______           ____            
  765.           of the system (software and hardware) on which the program is being
  766.           run. Send reports/questions by mail to the address given on the first
  767.           page of this documentation, by BIXmail (to pfletcher), by Compuserve
  768.           EMail (to 72255,305) or, for Registered Users with urgent problems,
  769.                                        ________________      ______          
  770.           call me on the telephone (the number is to be found on the card which
  771.           you should have received acknowledging your Registration).  Please
  772.           bear in mind that my willingness and ability to continue to support
  773.           and enhance these programs will be dependent on the number of
  774.           Registrations I receive, and (to some extent) inversely dependent on
  775.           the number of questions I get that could be answered by reading the
  776.           documentation(!).
  777.  
  778.  
  779.  
  780.  
  781.  
  782.  
  783.  
  784.  
  785.  
  786.  
  787.  
  788.  
  789.  
  790.  
  791.  
  792.  
  793.  
  794.  
  795.  
  796.  
  797.  
  798.  
  799.  
  800.  
  801.  
  802.  
  803.  
  804.  
  805.  
  806.  
  807.  
  808.  
  809.  
  810.  
  811.  
  812.  
  813.  
  814.  
  815.  
  816.           
  817.           
  818.                                          Page 11 
  819.            
  820.           Documentation for DIREDIT V3.02         Copyright 1989, P. R. Fletcher
  821.           ________________________________       _______________________________
  822.           
  823.                               CHANGES FROM PREVIOUS VERSIONS
  824.                               ______________________________
  825.  
  826.           The first version of DIREDIT that was generally released was V1.20.
  827.           The following shows changes incorporated at each of the subsequent
  828.           significant "watersheds" in the program's development. Intermediate
  829.           versions will have contained some but not all of the changes shown as
  830.           included in the releases listed here. The V2.xx releases were only
  831.           sent to Registered Users.
  832.  
  833.           V3.02 (this version)
  834.           _____               
  835.  
  836.           1) Minor changes to termination code (to ensure that user-selected
  837.           DOS screen colors are restored after exit).
  838.  
  839.           2) Minor changes to startup code and copyright screen, with no
  840.           functional consequences.
  841.  
  842.           V3.00
  843.           _____
  844.  
  845.           1) ANSI driver requirement removed. Major rewrite of low-level screen-
  846.           handling code to use Microsoft C V5.1 screen support functions.
  847.  
  848.           2) Full DOS 4.0 (and Compaq DOS 3.31) support added.
  849.  
  850.  
  851.           V2.24
  852.           _____
  853.  
  854.           1) Minor deficiencies (stray characters) in lower part of screen
  855.           display corrected.
  856.  
  857.           2) Minor (and possibly inconsequential) logic error in assembly
  858.           language code fixed. This error could have been responsible for the
  859.           rare reports I have received of system crashes and/or "Stack Overflow"
  860.           errors as the program terminates on some clones, but I have been
  861.           unable to duplicate the described problems on any of the systems to
  862.           which I have access.
  863.  
  864.           3) Deficiency preventing a move to the last space in the directory
  865.                                           __                                
  866.           corrected.
  867.  
  868.  
  869.           V2.20
  870.           _____
  871.  
  872.           1) Changes to cursor key routines to implement "wrapping" from
  873.           beginning to end and from side to side of the screen.
  874.  
  875.           2) Bugs and deficiencies in new disk I/O routines fixed.
  876.  
  877.  
  878.           V2.00
  879.           _____
  880.  
  881.           1) Added "Optimal" order option to [S]ort command.
  882.  
  883.           2) Added ability to specify type of sort by single additional
  884.           character appended to [S]ort command.
  885.  
  886.           3) Changes to disk I/O routines to support a greater variety of
  887.           devices.
  888.           
  889.           
  890.                                          Page 12 
  891.            
  892.           Documentation for DIREDIT V3.02         Copyright 1989, P. R. Fletcher
  893.           ________________________________       _______________________________
  894.           
  895.           V1.51
  896.           _____
  897.  
  898.           1) Bugs causing improper operation of the [R]ename option fixed.
  899.  
  900.           2) Copyright screen modified (to show author's new address!).
  901.  
  902.  
  903.           V1.40
  904.           _____
  905.  
  906.           1) Bug causing the program to abort with a "Non-existent or Invalid
  907.           Directory" error if the program were given a path specification
  908.           containing only a drive name (e.g. A:) fixed.
  909.  
  910.           2) Memory allocation/deallocation problem causing the program to abort
  911.           with a "Invalid Device" error after the "N" option was used to edit a
  912.           (variable) number of directories one after another fixed.
  913.  
  914.           3) ANSI driver reset to normal mode (insert line feed after 80th
  915.           successive printable character output to screen) when program exits.
  916.  
  917.           4) Changes to program logic to reduce unnecessary screen updating.
  918.  
  919.  
  920.           V1.30
  921.           _____
  922.  
  923.           1) Bug causing sorts by file size to result in incorrect ordering
  924.           under some circumstances fixed.
  925.  
  926.           2) Ability to use the faster screen output mode provided by certain
  927.           ANSI enhancers added.
  928.  
  929.  
  930.  
  931.  
  932.  
  933.  
  934.  
  935.  
  936.  
  937.  
  938.  
  939.  
  940.  
  941.  
  942.  
  943.  
  944.  
  945.  
  946.  
  947.  
  948.  
  949.  
  950.  
  951.  
  952.  
  953.  
  954.  
  955.  
  956.           
  957.           
  958.                                          Page 13 
  959.            
  960.           Documentation for DIREDIT V3.02         Copyright 1989, P. R. Fletcher
  961.           ________________________________       _______________________________
  962.           
  963.                         APPENDIX A - SUMMARY OF SINGLE-KEY COMMANDS
  964.                         ___________________________________________
  965.  
  966.  
  967.           <PgUp> (or <F3>) - move the current window up by twenty entries.
  968.  
  969.           <PgDn> (or <F4>) - move the current window down by twenty entries.
  970.  
  971.           <Home> - move the current window as far towards the beginning of the
  972.           directory as possible.
  973.  
  974.           <End> - move the current window as far towards the bottom of the
  975.           directory as possible.
  976.  
  977.           <Del> - "pick up" directory entry for move.
  978.  
  979.           <Ins> - "put down" directory entry.
  980.  
  981.           "D" - change the date stamp on the current file.
  982.  
  983.           "L" - toggle the "lock" which (by default) forces both windows to move
  984.           together.
  985.  
  986.           "M" - display the next of a series of single-line "aides-memoire" to
  987.           available commands which appear on the 23rd line of the screen.
  988.  
  989.           "N" - edit a new directory.
  990.  
  991.           "Q" - quit the program without updating the current directory.
  992.                                  _______                                
  993.  
  994.           "R" - rename the current file.
  995.  
  996.           "S" - sort the directory - subcommands:
  997.               "D" - by date/time.
  998.               "E" - by extension.
  999.               "F" - by filename.
  1000.               "O" - "optimal" order.
  1001.               "S" - by file size.
  1002.               "U" - user-specified (arbitrary) order.
  1003.  
  1004.           "X" - exit and (if any changes have been made) update the current
  1005.           directory.
  1006.  
  1007.           "?" or <F1> - display help text.
  1008.  
  1009.  
  1010.  
  1011.  
  1012.  
  1013.  
  1014.  
  1015.  
  1016.  
  1017.  
  1018.  
  1019.  
  1020.  
  1021.  
  1022.  
  1023.           
  1024.           
  1025.                                          Page 14 
  1026.            
  1027.           Documentation for DIREDIT V3.02         Copyright 1989, P. R. Fletcher
  1028.           ________________________________       _______________________________
  1029.           
  1030.                        APPENDIX B - KNOWN HARDWARE INCOMPATIBILITIES
  1031.                        _____________________________________________
  1032.  
  1033.  
  1034.           Tandy 2000 - Earlier versions of DIREDIT would run on this machine but
  1035.           the screen output was badly scrambled, effectively making it useless.
  1036.           The current version of the program uses totally different screen
  1037.           output routines, so the problem may be solved, but this has not yet
  1038.                                                                       ___    
  1039.           been confirmed.
  1040.  
  1041.           TI Professional - DIREDIT must be run under the (TI-supplied)
  1042.           EMULATE.COM program. <F3> and <F4> are used instead of PgUp and PgDn
  1043.           (which do not exist on the TI keyboard).
  1044.  
  1045.  
  1046.  
  1047.  
  1048.  
  1049.  
  1050.  
  1051.  
  1052.  
  1053.  
  1054.  
  1055.  
  1056.  
  1057.  
  1058.  
  1059.  
  1060.  
  1061.  
  1062.  
  1063.  
  1064.  
  1065.  
  1066.  
  1067.  
  1068.  
  1069.  
  1070.  
  1071.  
  1072.  
  1073.  
  1074.  
  1075.  
  1076.  
  1077.  
  1078.  
  1079.  
  1080.  
  1081.  
  1082.  
  1083.  
  1084.  
  1085.  
  1086.  
  1087.  
  1088.  
  1089.  
  1090.           
  1091.           
  1092.                                          Page 15 
  1093.            
  1094.           Documentation for DIREDIT V3.02         Copyright 1989, P. R. Fletcher
  1095.           ________________________________       _______________________________
  1096.           
  1097.                          APPENDIX C - USING DIREDIT WITH RAMDISKS
  1098.                          ________________________________________
  1099.  
  1100.  
  1101.           In general, you can most conveniently arrange files on a RAMDisk
  1102.           simply by copying them onto it in the order in which you want them to
  1103.           appear in the directory listing. The following discussion is for those
  1104.           who like to do things the hard way and have some understanding of the
  1105.                                              ___                               
  1106.           hardware (!). RAMDisk drivers go to different lengths to emulate
  1107.           "real" devices, from those (the minority) which create a complete
  1108.           memory image of a floppy or hard disk, including a valid boot sector,
  1109.           to those which rely on the device driver code to interpret sector read
  1110.           and write commands on the basis of its own "understanding" of what may
  1111.           be a very non-standard "disk" format. DIREDIT can and does use more
  1112.           than one approach to deduce the format of a disk (hard, floppy, or
  1113.           RAM!), but the program needs information which is not normally
  1114.           available to programs running under DOS, and usually gets it from the
  1115.           BIOS Parameter Block (BPB) area in the device's boot sector. If there
  1116.           is no boot sector, the only remaining way of getting the needed
  1117.           information requires DOS 3.2 or above and that the device driver
  1118.           supports the generic IOCTL functions which were introduced with
  1119.           DOS 3.2 (few, if any, RAMDisk driverss do support these functions at
  1120.           present). If there is a boot sector and it is valid, DIREDIT should
  1121.                              __               _______________                
  1122.           not have any problems. If there is a boot sector but the information
  1123.           in it is incomplete or invalid, you may be able to make it usable by
  1124.           using the VALIDATE program supplied with this package.
  1125.  
  1126.           The command syntax for VALIDATE is "VALIDATE d", where d is replaced
  1127.           by the device name of your RAMDisk (with or without a ":"). The
  1128.           program will also allow modification of the boot sectors on floppy and
  1129.           hard disks, but should be used with care, if at all, on these devices
  1130.           unless you are absolutely sure you know what you are doing. VALIDATE
  1131.                          _______________                                      
  1132.           reads the first logical sector on the device and, if it seems possible
  1133.           that this is a boot sector, displays the contents of what should be
  1134.           its BPB area. You can then (with some help from the program) adjust
  1135.           the contents of the BPB, presumably to reflect reality, and write it
  1136.           back to the RAMDisk. VALIDATE will not allow you to write an obviously
  1137.           incorrect or inconsistent BPB back to the disk, but there are limits
  1138.           to its ability to identify invalid data - you should know what you are
  1139.           doing before you make any changes. For some reason, RAMDisk drivers
  1140.           frequently create boot sectors which do not end with the standard
  1141.           (55AA Hex) boot segment "signature", but are otherwise valid. The
  1142.           "signature" is added automatically by VALIDATE when the sector is
  1143.           rewritten, even if no other changes are made. After you have rewritten
  1144.           the boot sector, DIREDIT should work properly on the disk.
  1145.  
  1146.           I am aware that these instructions are somewhat cursory - if you have
  1147.           a real need to use DIREDIT on a RAMDisk and want more help, contact me
  1148.           directly.
  1149.  
  1150.  
  1151.  
  1152.  
  1153.  
  1154.  
  1155.  
  1156.  
  1157.  
  1158.  
  1159.           
  1160.           
  1161.                                          Page 16 
  1162.  
  1163.                            REGISTRATION FORM - DIREDIT
  1164.                            ___________________________
  1165.  
  1166.      Please complete this form and return it with a check or money order (no
  1167.      cash, please) for $20.00 ($30.00 Canadian, L15.00 Sterling) to:
  1168.  
  1169.                      Peter R. Fletcher
  1170.                      1515 West Montgomery Avenue
  1171.                      Rosemont
  1172.                      PA 19010
  1173.                      U.S.A.
  1174.  
  1175.      None of the information on this form will be passed on to any other
  1176.      individual or commercial organization. Use the back of the form for
  1177.      comments or additional space.
  1178.  
  1179.      --------------------------------------------------------------------------
  1180.  
  1181.      This information is required to process your Registration:
  1182.  
  1183.      Last Name:____________________________  Other Names:______________________
  1184.  
  1185.      Address:______________________________  Town/City:________________________
  1186.  
  1187.      State:_____________  Post Code:____________  Telephone:_________________
  1188.                                                            (evenings/weekends)
  1189.  
  1190.      DIREDIT Version #:_______________  Serial #:_______________
  1191.                                 (see copyright screen)
  1192.  
  1193.      I understand that this software is supplied without warranty, express or
  1194.      implied, and agree not to hold its author liable for any direct or
  1195.      consequential loss arising out of my use of it.
  1196.  
  1197.      Signature:______________________________
  1198.  
  1199.      -------------------------------------------------------------------------
  1200.  
  1201.      You are requested, but not required, also to answer the following
  1202.      questions:
  1203.  
  1204.      On What type(s) of computer are you using DIREDIT? ______________________
  1205.  
  1206.      CPU (8088, 8086, etc.)? __________   Amount of RAM (kB)? ____________
  1207.  
  1208.      Type & Size of Hard Disk(s)? ____________________________________
  1209.  
  1210.      Make and Type of Hard Disk Controller(s)? ______________________________
  1211.  
  1212.      Do you own a Modem?                                             Y  N
  1213.  
  1214.      Are you a member of BIX?   Y  N        Compuserve?              Y  N
  1215.  
  1216.      How did you obtain/hear about this program?
  1217.  
  1218.      Did you think that the $20.00 registration fee for this program was:
  1219.  
  1220.      Very Good Value?              About Right?             Excessively High?
  1221.  
  1222.  
  1223.      Are there any other utility programs that you would like to see made
  1224.      available as "User Supported Software"? What sort of programs?
  1225.  
  1226.