Microsoft DOS undelete command

Quick links

About undelete
Availability
Syntax
Examples
Additional information

About undelete

Allows you to restore files that may have been deleted.

Availability

The undelete command is an external command that is available in the below Microsoft operating systems.

MS-DOS 5.0 - 6.22

Syntax

UNDELETE [drive:][path][file][/DT][ /DS][//DOS]
UNDELETE [/list][/all][/purge][/status][/load][/U][/S][/T][-entries]

/all Automatically recovers all files specified.
/list All available files that are able to be undeleted are listed however not recovered.
/DOS Restricts the recovery to those files that meet the file specifications (filespec) in the disk directory table.
/DT Restricts recovery to files within the Delete Tracking File.
/DS Restricts recovery to files within the SENTRY directory.
/load Loads the undelete program into memory using information found in the UNDELETE.INI.
/unload Unloads the memory resident portion of the Undelete program from memory.
/purge[d] Deletes the contents of the SENTRY directory.
/status Displays the delete protection present on the computer.
/S[d] Enables the Delete Sentry level of protection and loads the memory resident portion of the UNDELETE program.
/Tdrive[-entries] Enables the Delete Tracker level of protection and loads the memory-resident portion of the UNDELETE program. The optional [-entries] allows you to specify the maximum amount of entries found in the PCTRACKR.DEL file with a maximum of 999 and a minimum of 1.

Examples

undelete c:\windows\system\*.* /all

Undelete all files that may have been deleted in the windows system directory.

undelete /list /dos

Lists the files that you can recover when only standard tracking is enabled.

Additional information

This program and command was designed to only be run in MS-DOS versions 5.0 to 6.22. If you have upgraded to Windows 95, Windows 98, Windows NT, or any other operating system, this command will not restore any information but may possibly cause additional issues with the Hard Drive if run. If you currently are running a different operating system it is recommended that you utilize a third-party utility to recover lost data.