命令行大全

lock and unlock

秃噜豆儿 发表于 2020-06-23 15:30浏览次数:

该命令允许或拒绝应用程序的直接磁盘访问。

查看英文版

目录:

1 lock and unlock 运行系统环境

2 lock and unlock 语法

3 lock and unlock 示例

lock and unlock 运行系统环境

Windows 95

Windows 98

lock and unlock 语法

LOCK [drive:]
drive: 指定需要锁定的驱动器。
UNLOCK [drive:]
UNLOCK [drive:]
drive: 指定需要解锁的驱动器。
LOCK [drive:]
drive: Specifies the drive that needs to be locked.
UNLOCK [drive:]
UNLOCK [drive:]
drive: Specifies the drive that needs to be unlocked.

查看英文版

查看中文版

lock and unlock 示例

lock c:

锁定C:驱动器

在上面键入命令时,您将收到以下提示:

警告:LOCK命令使程序可以直接访问,这些程序可以更正文件名和DESTROY磁盘数据,从而导致磁盘上的文件丢失。

确定(是/否)?

unlock c:

解锁C:驱动器

lock c:

Lock the C: drive

When typing the command above, you will receive the following prompt.

WARNING: The LOCK command enables direct access by programs that can CORRUPT file names and DESTROY disk data, resulting in the loss of files on your disk.

Are you sure (Y/N)?

unlock c:

Unlock the C: drive

如果错误指示由于硬盘驱动器已锁定而导致某个过程无法继续,则unlock命令无法解决这些错误消息。

If an error is indicating that a process cannot continue because the hard drive is locked, the unlock command cannot resolve these error messages.

查看英文版

查看中文版