Store Locator:   All Locations

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

Enter your zip code


Sign up for our monthly newsletter and get free tips and tricks to keep your computer running well.

Start by Entering

Listen to Tech Tips

Join us on a radio station near you. Tech Tips for Non-Tech People!

In the Press