Assigns a drive letter to a different drive.
Redirects requests for disk operations on one drive to a different drive.
Some older programs can read and write files only on drives A and B. With the ASSIGN
command, you can redirect disk operations for those programs so that you can read and
write files on drives other than A and B.
| assign [x=y [z=y ..]][/STATUS] |
|
|
With no parameters, reset all drives to their original assignments. |
| x |
|
The actual drive, that DOS normally uses (usually a or b). |
| y |
|
The drive you want DOS to use. |
| /STATUS |
|
Display a list of the current assignments.
May be abbreviated to /STA or /S. |
|
- Examples
| >assign a=c b=c |
When a program looks for files on drive A or drive B, the program will see files on
drive C. |
- Notes
- Do not assign drive C (the harddisk) to a different drive letter!
- Do not assign a drive to a different drive that does not exist.
- If a drive is in use (used by some program), ASSIGN cannot be used on this drive.
- ASSIGN hides the actual drive type - therefore, do not use ASSIGN with the following
commands that use drive information: BACKUP, RESTORE, LABEL, JOIN, SUBST, PRINT
- FORMAT and DISKCOPY ignore assignments.
- If you use both the ASSIGN and APPEND commands, you must use
APPEND first,
even if the commands affect different drives.
- You can use the ASSIGN command for network drives.
- ASSIGN should be replaced with the newer command SUBST. The following commands are
equivalent::
>assign a=c
>subst a: c:\
|
- Not in Windows 95/98.
-