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

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

    In another year I’ll have enough money saved. Then I’m gonna go back to my hometown in Oregon and I’m gonna build a house for my mother and myself. And join the country club and take up golf. And I’ll meet the proper man with the proper position. And I’ll make a proper wife who can run a proper home and raise proper children. And I’ll be happy, because when you’re proper, you’re safe.
    Daniel Taradash (b. 1913)

    In certain savage tribes in New Guinea, they put the old people up in the trees and shake them once a year in the spring; if they don’t fall out they let them live another year.
    —John Dos Passos (1896–1970)

    All day long the machine waits: rooms,
    stairs, carpets, furniture, people
    those people who stand at the open windows like objects
    waiting to topple.
    Anne Sexton (1928–1974)