ASSIGN [X[=]Y[...]] Routes disk I/O to another drive
ASSIGN + Reassigning the Default Drive
Instructs DOS to use a disk drive other than the one
originally specified by an application program.
VERSION
PC-DOS 2.0+
MS-DOS equivalent: ASSIGN (3.0+)
TYPE
External
SYNTAX
[d:][path] ASSIGN d1 = d2
OPTIONS
[d:][path] Before ASSIGN, specifies the drive
letter and path that contain the ASSIGN
command.
d1 Specifies the current drive letter to
which disk I/O requests are sent.
d2 Specifies the drive letter to which disk
I/O requests are now to be sent.
ASSIGN allows you to reassign the default drive before
running a program that includes drive names in the files it
accesses so that you can run drive-specific version 1 programs on
a hard disk.
EXAMPLES
ASSIGN A = B
assigns drive A to drive B so that whenever drive A is requested,
drive B is used.
ASSIGN A = C B = C
assigns both drive A and drive B to drive C.
ASSIGN
reassigns the default settings so that requests for drive C go to
that drive.
UNDO
Issue the ASSIGN command as
ASSIGN
with no parameters to return drives to their normal assignments.
NOTE
Be careful to reassign drives to their normal assignments
before running another program that contains drive designations.
If you reassign the designation of the drive that contains the
ASSIGN program, you cannot clear the assignment without
rebooting. Do not use ASSIGN with the BACKUP, RESTORE, LABEL,
JOIN, SUBST, or PRINT command. In addition, FORMAT, DISKCOPY, and
DISKCOMP ignore drive reassignments.
------------------------------------------------------------------
[For related topics, press R]
SEE ALSO
APPEND Command
BACKUP Command
BREAK Command
CHKDSK Command
DISKCOMP Command
DISKCOPY Command
FASTOPEN Command
FORMAT Command
JOIN Command
LABEL Command
PRINT Command
SUBST Command