UNDELETE

The description below is from the book
DOS the Easy Way by Everett Murdock Ph.D.

CLICK HERE for information about downloading the book.

Type: External (5.0 and later)

Syntax:

UNDELETE [d:][path][filename] [/DT|/DS|/DOS]
UNDELETE [/list|/all|/purge[d:]|/status|/load|/U|/S[d:]|/Td:[-entries]]

Purpose: Restores files deleted with the DELETE command.

Discussion

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.

For more information on using the UNDELETE command, refer to Chapter 2, Using Common DOS Commands.

Options

/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.

Examples

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

undelete /dt




Back to the Easy DOS Command Index