Type: External (5.0 and later)
UNDELETE [d:][path][filename] [/DT|/DS|/DOS]
Purpose: Restores files deleted with the DELETE command.
Used to recover files that have been previously erased. The UNDELETE command can only
recover deleted files if no new files or changes have been made on the disk since the
deletion. Therefore, if you accidentally delete a file that you want to keep, stop what
you are doing immediately and use the UNDELETE command to retrieve the file.
/all - Automatically recovers all of the files you specify.
/list - All available files are listed (but files are not recovered).
/DOS - Restricts recovery to those files that meet the file specifications (filespec) in the disk directory table.
/DT - Restricts recovery to those files found in the Delete Tracking File.
/DS - Restricts recovery to those files found in the SENTRY directory.
/load - Loads the Undelete memory-resident program into memory using information defined in the UNDELETE.INI file.
/unload - Unloads the memory-resident portion of the Undelete program from memory, turning off the capability to restore deleted files.
/purged[d] - Deletes the contents of the SENTRY directory.
/status - Displays the type of delete protection in effect for each drive.
/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 parameter specifies the maximum number of entries in the deletion-tracking file (PCTRACKR.DEL). It must be a value in the range 1 through 999 with the default value determined by the type of disk being tracked.
To undelete all recoverable files in the LETTERS directory, enter
undelete \letters\*.* /all
To undelete all recoverable files in the current directory using the delete-tracking file, enter