Using the UNDELETE Command in Windows 95

This article was previously published under Q142189
This article has been archived. It is offered "as is" and will no longer be updated.
If you try to use the MS-DOS UNDELETE command in Windows 95, you mayreceive the following error message:
Windows has disabled direct disk access to protect long filenames. To override this protection, see the LOCK /? command for more information.

The system has been halted. Press CTRL+ALT+DEL to restart your computer.
The UNDELETE command requires direct access to the drive. You must lockthe drive before you issue the UNDELETE command.
NOTE: The UNDELETE command runs in MS-DOS mode by default. You should runthese commands in MS-DOS mode.

Lock the drive before you issue the UNDELETE command. To lock the drive,type
   lock <x>:				
where <x> is the letter of the drive you want to lock.

When you are done using the UNDELETE command, unlock the drive by typing
   unlock <x>:				
where <x> is the letter of the drive you want to unlock.

WARNING: Using the LOCK command enables direct disk access. A program thataccesses the disk directly can destroy long file names. You should back uplong file names before running a program that could harm them. To back uplong file names, use the Lfnbk.exe program located in the Admin\Apptools\ Lfnbk folder on the Windows 95 CD-ROM. See the Lfnbk.txt file in the samefolder for information about this program.

The Lfnbk.exe program is included in the CD-ROM version of Windows 95, butnot in the floppy disk version. If you are using the floppy disk versionof Windows 95 and you want to use Lfnbk.exe, please see the followingarticle in the Microsoft Knowledge Base for information about theavailability of Lfnbk.exe:
135315 CD-ROM Extras for Microsoft Windows 95 Upgrade

Article ID: 142189 - Last Review: 10/26/2013 13:38:00 - Revision: 2.0

  • Microsoft Windows 95
  • kbnosurvey kbarchive KB142189