• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 180
  • Last Modified:

Undelete Command Under Dos v7.0

If you delete something under DOS in '95, how can you get it back?  If I understand it correctly, '95's command.com no longer supports the undelete command.  Help.
1 Solution
Got the following from the Microsoft web site.

If you try to use the MS-DOS UNDELETE command in Windows 95, you may
receive the following error message:
   Windows has disabled direct disk access to protect long filenames.
   To override this protection, see the LOCK /? command for more
   The system has been halted. Press CTRL+ALT+DEL to restart your
The UNDELETE command requires direct access to the drive. You must lock
the drive before you issue the UNDELETE command.
NOTE: The UNDELETE command runs in MS-DOS mode by default. You should run
these commands in MS-DOS mode.
Lock the drive before you issue the UNDELETE command. To lock the drive,
   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 that
accesses the disk directly can destroy long file names. You should back up
long file names before running a program that could harm them. To back up
long 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 same
folder for information about this program.
The Lfnbk.exe program is included in the CD-ROM version of Windows 95, but
not in the floppy disk version. If you are using the floppy disk version
of Windows 95 and you want to use Lfnbk.exe, please see the following
article in the Microsoft Knowledge Base for information about the
availability of Lfnbk.exe:
   ARTICLE-ID: Q135315
   TITLE     : CD-ROM Extras for Microsoft Windows 95 Upgrade

kuleskAuthor Commented:
When I tried to lock the drive, it came back with an error messages saying, "Locking operation failed".
S ConnellyTechnical WriterCommented:
First of all, the longer you use your computer, the less your chances are of recovering this data.

Do not install anything on your hard drive until you run the recovery!!

Two options that come to mind:
- Get Norton Utilities and install it on another computer...you require the unerase program.  Run it from the floppy.
   In addition, Norton Utilities will protect files that are deleted at DOS level.

- Go to Shareware.com and search for pd0646.exe (these are the MS undelete and Chkdsk utils) or go directly to microsoft.com

Good luck!

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Get expert help—faster!

Need expert help—fast? Use the Help Bell for personalized assistance getting answers to your important questions.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now