Drive Letter Assignment - ASSIGN, JOIN and SUBST in DOS and Windows

ASSIGN, JOIN and SUBST in DOS and Windows

Drive letters are not the only way of accessing different volumes. DOS offers a JOIN command that allows access to an assigned volume through an arbitrary directory, similar to the Unix mount command. It also offers a SUBST command which allows the assignment of a drive letter to a directory. One or both of these commands were removed in later systems like OS/2 or Windows NT, but starting with Windows 2000 both are again supported: The SUBST command exists as before, while JOIN's functionality is subsumed in LINKD (part of the Windows Resource Kit). In Windows Vista, the new command MKLINK can be used for this purpose. Also Windows 2000 and later support mount points, accessible from the Control Panel.

Many operating systems originating from Digital Research provide means to implicitly assign substitute drives, called floating drives in DRI terminology, by using the CD/CHDIR command in the following syntax:

CD N:=C:SUBDIR

DOS Plus supports this for drive letters N:, O:, and P:. This feature is also present in Concurrent DOS, Multiuser DOS, System Manager 7, and REAL/32, however, these systems extend the concept to all unused drive letters from A: to Z:, except for the reserved drive letter L:. DR DOS 3.31 - 6.0 (up to the 1992-11 updates with BDOS 6.7 only) also supports this including drive letter L:. This feature is not available under DR DOS 6.0 (1992 upgrade), PalmDOS 1, Novell DOS 7, OpenDOS 7.01, DR-DOS 7.02 and higher. Floating drives are implemented in the BDOS kernel, not in the command line shell, thus they can be used and assigned also from within applications when they use the "change directory" system call. However, most DOS applications are not aware of this extension and will consequently discard such directory paths as invalid. JP Software's command line interpreter 4DOS supports floating drives on operating systems also supporting it.

In a similar feature, Concurrent DOS, Multiuser DOS, System Manager and REAL/32 will dynamically assign a drive letter L: to the load path of a loaded application, thereby allowing applications to refer to files residing in their load directory under a standardized drive letter instead of under an absolute path. This load drive feature makes it easier to move software installations on and across disks without having to adapt paths to overlays, configuration files or user data stored in the load directory or subsequent directories. (For similar reasons, the appendage to the environment block associated with loaded applications under DOS 3.0 (and higher) contains a reference to the load path of the executable as well, however, this consumes more resident memory, and to take advantage of it, support for it must be coded into the executable, whereas DRI's solution works with any kind of applications and is fully transparent for users as well.)

Read more about this topic:  Drive Letter Assignment

Other articles related to "subst":

Subst - See Also
... Drive letter assignment Floating drive Load drive List of DOS commands. ...
Barracuda (magazine)
... Steps to list an article for deletion {{substafd}} Preloaded debate OR {{substafd2
Unification (computer Science) - Definition of Unification For First-order Logic
... UNIFY(p,q) = U where subst(U,p) = subst(U,q) Where subst(U,p) means the result of applying substitution U on the sentence p ... such that applying s to the result of applying U to L gives the same result as applying U' to L subst(U',L) = subst(s,subst(U,L)) ...

Famous quotes containing the words windows, dos and/or join:

    The frost was on the village roofs as white as ocean foam;
    The good red fires were burning bright in every ‘longshore home;
    The windows sparkled clear, and the chimneys volleyed out;
    And I vow we sniffed the victuals as the vessel went about.
    Robert Louis Stevenson (1850–1894)

    Madame Soubrine asked me to tell everybody it was nothing, absolutely nothing. Just a little blaze in a pile of rubbish.
    —John Dos Passos (1896–1970)

    Our ability to fall in love requires enough comfort with our masculinity to join it with someone’s femininity and feel enhanced. . . . If our mother made us feel secure and proud in our masculinity, then we want to find that again in our wife. If we are really comfortable with our mother, we can even marry a woman who is a friend rather than an adversary, and form a true partnership.
    Frank Pittman (20th century)