How to lock and unlock in DOS command?

Question

how to lock & unlock in dos command

Answer

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

Example:

LOCK C: this will lock the C: drive

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

>http://www.computerhope.com/msdos.htm</p>

Need Help with this Issue?

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

Author

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