命令行大全

assign

方砖大叔 发表于 2020-06-17 14:41浏览次数:

指定命令是随MS-DOS 2.0引入的,在删除该命令的最高版本6.0中可用。 后来它可以在MS-DOS 6.0、6.2和6.22补充磁盘上使用。 Assign命令将一个驱动器上的磁盘操作重定向到另一个驱动器。

查看英文版

目录:

1 assign 运行系统环境

2 Assign 语法

3 Assign 示例

assign 运行系统环境

MS-DOS 2.0 - 6.0, 6.2, 6.22

Assign 语法

ASSIGN Source = Target /status
ASSIGN 无开关分配会取消重定向的驱动器分配,并将其设置回其原始驱动器。
Source 原驱动器。
Target 目标驱动器。
/status 列出所有驱动器。
ASSIGN Source = Target /status
ASSIGN Assign with no switches cancels redirected drive assignments and sets them back to their original drives.
Source Letters of source drives.
Target Letters of target drives.
/status Lists current drive assignments.

查看英文版

查看中文版

Assign 示例

assign a: = b:

将A:驱动器分配为B:驱动器。

assign a =  b = c

将A:分配为B :,将B:分配为C:。

assign a: = b:

Assigns the A: drive as the B: drive.

assign a =  b = c

Assigns A: as B: and B: as C:.

提示 The assign command does not work with format, diskcopy, diskcomp, backup, label, restore, print or subst. 警告 Do not use a colon after a drive letter in versions before 5.0.

note The assign command does not work with format, diskcopy, diskcomp, backup, label, restore, print or subst. Warning Do not use a colon after a drive letter in versions before 5.0.

查看英文版

查看中文版