2.BTM - Directory Changer                              4DOS 5.5
--------------------------------------------------------------------------
Syntax: 2 [/A][/C][/F][/N][/Q][/S(drives)][/?] [directory]

        /A(lways Search)
        /C(urrent Directory - Add)
        /F(irst Match)
        /N(etwork Drives - Include in Scan)
        /Q(uiet)
        /S(can Disks)
        /?(Usage Screen)

This batch program allows the user to change directories by simply typing
the directory name instead of the complete path. It also accepts partial
names and misspelled names.

Example:

Target Directory: c:\work\telix\scripts

Possible Commands:   2 scripts
                     2 scr
                     2 scruots

If more than one directory match is found, the program will display a box
that allows selection of the correct directory. If no matching directory
is found, the program will optionally rescan the disk and search again.
If no command line parameters are given, the program will display a
usage screen.

Switches:

    /A - Normally, if there is a subdirectory in the current
         directory that matches the target, the program will switch
         to that directory without searching its list of directories.
         This switch prevents the program from doing this and forces
         it to always search its directory list.

    /C - Adds the current directory to the list.

    /F - Forces the program to change to the first directory found
         whether or not there is more than one match.

    /N - Includes any network drives when performing a scan.

    /Q - If no matching directories are found, the program normally
         asks to rescan the disk and try again. This switch forces
         the program to assume the answer is no.

    /S - Updates the program's list of directories. You can exclude
         drives from the scan by putting them in parenthesis after
         the switch. For example, "/s(de)" would scan every drive
         except for D and E.

    /? - Displays a usage screen

Hints:

    The following aliases are helpful:
    alias 2=cdd %[%#] >& nul || 2.btm %&
    alias 22*222222=cd %@repeat[.,%@len[%0]]

    DO NOT use batcomp on this file.

    Switches must be separated.  For example, "/a/f/q" will work but
    "/afq" will not work properly.

--------------------------------------------------------------------------
Other Odds and Ends
--------------------------------------------------------------------------
The program will assume that you don't want to change to the current
directory and will not include it in a list of finds.

The program will perform an automatic scan if its list of directories
does not exist or the volume label of drive C: changes.

The program will ignore CD-ROM and unready drives when scanning.

--------------------------------------------------------------------------
Other Information
--------------------------------------------------------------------------
You can contact me (David Webb) via e-mail at dwebb@cctr.umkc.edu or
by posting a message in the 4dos newsgroup.  I am interested in any
ideas, comments, or problems you may have concerning this or any other
4dos batch files.  Your feedback helps me write better programs.

This program is freeware and may be distributed without restriction as
long as this text file is included.  You may make any changes in this
program to make it better fit your needs.