COVID-19 UPDATE: How Data Doctors is preparing & responding. Learn more >

How to lock and unlock in DOS command?


how to lock & unlock in dos command


This question was answered on May 8, 2001. Much of the information contained herein may have changed since posting.

A: Hello and thank you for your question.

The LOCK/UNLOCK command enables a user to lock or unlock a drive, enabling/disabling direct disk access for an application.

At the command prompt, type the following:

LOCK [drive:] the drive specifies the drive to be locked

UNLOCK [drive:] the drive specifies the drive to be unlocked


LOCK C: this will lock the C: drive

For more information on DOS commands, log on to the following website:

Need Help with this Issue?

We help people with technology! It's what we do.
Schedule an Appointment with a location for help!


Posted by Leonida of Chandler-Gilbert Community College on May 8, 2001