lock and unlock
秃噜豆儿 发表于 2020-06-23 15:30浏览次数:
The lock and unlock commands allow or deny direct disk access for applications.
目录:
1 lock and unlock 运行系统环境
2 lock and unlock 语法
3 lock and unlock 示例
lock and unlock 运行系统环境
lock and unlock 语法
LOCK [drive:]
UNLOCK [drive:]
UNLOCK [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.