home *** CD-ROM | disk | FTP | other *** search
/ ProfitPress Mega CDROM2 …eeware (MSDOS)(1992)(Eng) / ProfitPress-MegaCDROM2.B6I / UTILITY / DIR / TO40B.ZIP / TO.DOC < prev    next >
Encoding:
Text File  |  1990-10-14  |  7.2 KB  |  143 lines

  1.              
  2.  TO.COM     │ TO.COM Version 4.0
  3.             │ A fast, flexible directory change program.
  4.             │
  5.  Author     │ Copyright (c)1990 Jeffrey S. Morley
  6.             │ All rights reserved.
  7.             │
  8.             │
  9.  Preface    │ There is a program out in the public domain world called
  10.             │ GO.COM, that I had been using for some time.  It allows
  11.             │ you to change directories by merely typing GO DIRNAME and
  12.             │ hitting enter.  Besides eliminating the "\" character,
  13.             │ it allows you to abbreviate the name of the directory.
  14.             │ 
  15.             │ This is a very nice little program, and speeds moving 
  16.             │ around the hard drive up quite a bit.  It has several
  17.             │ problems/shortcomings that I am aware of, and that is
  18.             │ why I wrote TO.COM.
  19.             │
  20.             │ 1)  It will not allow you to change drives to a "logical"
  21.             │     drive.  I.E. it won't change to my Bernoulli Box.
  22.             │
  23.             │ 2)  It doesn't properly allow you to march UP the path,
  24.             │     and generaly has some problems jumping around in 
  25.             │     complicated directory trees.  Also, errors put you in
  26.             │     the ROOT directory, which is fine unless you weren't
  27.             │     paying close attention and planned on a DEL *.* in the
  28.             │     target directory.  It should make a noise upon failure!
  29.             │
  30.             │ 3)  It will only allow you to go 2 levels down with one    
  31.             │     command.  This is not a problem for most, but as a     
  32.             │     PCBoard Sysop, I have many directories 3 levels down.  
  33.             │                                                            
  34.             │ 4)  I wanted to have the program capable of executing the  
  35.             │     best directory lister around, HDIR.COM, when it got to 
  36.             │     the desired directory.  Since I almost always end up   
  37.             │     running HDIR when I change directories anyway, why     
  38.             │     not have your CD program do it for you?                
  39.             │
  40.             │     
  41.             │ It is understandably hard to decide which directory is meant
  42.             │ in a system like this when there is any ambiguity.  I guess
  43.             │ that is why a program like Norton's NCD was created.  The
  44.             │ big drawback to NCD is that adding or deleting a directory
  45.             │ requires you to erase the file created in the root directory,
  46.             │ and rescan your hard drive.  This is a pain, even if you DO
  47.             │ remember to do it.
  48.             │     
  49.             │ Both GO and my TO.COM have no need for any external files.
  50.             │ they look at the actual directory structure each time they
  51.             │ are used.  The payback here is that the FIRST directory that
  52.             │ matches is selected.  You then need to be careful to make 
  53.             │ TO commands as specific as required, keeping this in mind.  
  54.             │ 
  55.             │ A drive with a directory of C:\QB4 and one of C:\PROG\QBASIC
  56.             │ is a good example.  Even if you are IN the C:\PROG directory,
  57.             │ typing "TO QB" will jump you to C:\QB4.  This is because 
  58.             │ matches in the ROOT directory will always have priority.
  59.             │ "TO PROG QB" or "TO QBA" will work in this case.       
  60.             │ 
  61.             │ 
  62.  Using TO   │ TO.COM will do the following:
  63.             │
  64.             │ 1)  Allow you to change to a directory by typing the word
  65.             │     TO, followed by as much of the directory name(s) as is 
  66.             │     required to make it different from other directories.
  67.             │     No "\" characters are required, but can be used if you
  68.             │     are so inclined.  For UNIX types, the "/" char will
  69.             │     also be allowed.
  70.             │
  71.             │     C:>TO dir1
  72.             │
  73.             │ 2)  Allow you to specify up to THREE sub-directory levels
  74.             │     on one command line.
  75.             │
  76.             │     C:>TO dir1 dir2 dir3  (or abbreviations)
  77.             │
  78.             │ 3)  Allow you to use one of the three levels to change 
  79.             │     drives.
  80.             │
  81.             │     C:>TO D: dir1 dir2
  82.             │
  83. NEW!        │     NOTE!  The ":" character is not required.  If you 
  84. .           │     issue the above as:
  85. .           │
  86. .           │     C:>TO d dir1 dir2
  87. .           │
  88. .           │     To.Com, seeing the single character first parameter,
  89. .           │     will assume that you mean a drive, will check the 
  90. .           │     validity of that drive letter, and will begin checking
  91. .           │     on that drive.  If the single character is not a 
  92. .           │     valid drive letter, To.Com will search normally on the
  93. .           │     current drive, assuming the character to be an 
  94. .           │     abbreviation for a directory.  Don't use single character
  95. .           │     requests for directory-only searches unless the character
  96. .           │     is not a valid drive letter.                   
  97.             │
  98. NEW!        │  4) TO.COM will now search all valid drives for a match on
  99. .           │     your request.  If it doesn't find a match on the current
  100. .           │     drive, it will search all your HARD drives, and will 
  101. .           │     change both the drive and the directory if a match is 
  102. .           │     found.
  103.             │
  104.             │ 5)  Allow you to automatically run HDIR.COM when you get
  105.             │     to the desired directory.  This is done by placing a
  106.             │     any one of the following characters at the end of the
  107.             │     command line.
  108.             │
  109.             │     . (period)
  110.             │     ' (apostrophe)
  111.             │     ; (semi-colon)
  112.             │
  113.             │     This range of characters is offered to allow you to 
  114.             │     use whatever is most comfortable for your fingers.
  115.             │
  116.             │     C:>TO dir1.
  117.             │
  118.             │     The above example will change to the dir1 directory,
  119.             │     and execute HDIR. 
  120.             │
  121.  ADVANCED!  │ NOTE!  I have left room in the code to change HDIR to
  122.  Backup the │ just H, and/or to add parameters to the HDIR command
  123.  TO program │ line.  I won't go into this in detail, but you may use
  124.  first!     │ Norton's NU or another HEX editor to change or add to
  125.             │ the HDIR command.  Just be sure to only use the space  
  126.             │ provided.  Just search for "HDIR" to find the proper
  127.             │ location.
  128.             │
  129.             │
  130.  FreeWare   │ TO.COM is NOT Public Domain software.  I reserve all
  131.             │ rights to the program with the following exception:
  132.             │
  133.             │ You may USE and DISTRIBUTE the TO.COM program and
  134.             │ its documentation as long as no charge is made for
  135.             │ the program.  Please distribute the program and the 
  136.             │ documentation in original condition.
  137.             │
  138.             │ TO.COM is written in QuickBasic 4.5, with help from 
  139.             │ Hammerly Computer Services' ProBas 4.1.
  140.             │
  141.             │ Jeffrey S. Morley - October 14, 1990
  142.             │
  143.