The UNDEL Utility

The utility restores one or more deleted files by moving them from a hidden DELETED subdirectory to the parent directory. Run UNDEL using the following command line:

UNDEL [[{option | files}]]

The files field specifies the files to be restored. If you specify more than one file, separate the names with spaces. You cannot use operating-system wildcards (* and ?). You can specify a path with the filename. If more than one file in DELETED has the specified name, UNDEL lists the versions and prompts for which file to restore. If a file with the same name already exists in the parent directory, UNDEL moves it to the DELETED directory before restoring the specified file.

To list all files in the current directory's DELETED subdirectory, specify the UNDEL command alone. However, you cannot list files in a remote directory; UNDEL does not accept a path without a filename.

UNDEL has the following options; the option names are not case sensitive:

/HELP

Calls the QuickHelp utility. If UNDEL cannot find the help file or QuickHelp, it displays a brief summary of UNDEL command-line syntax.

/?

Displays a brief summary of UNDEL command-line syntax.

Example

UNDEL \PROJECT\WORK\REPORT.TXT

This command line tells UNDEL to restore the file called REPORT.TXT in the directory \PROJECT\WORK on the current drive. If a file called REPORT.TXT already exists in that directory, UNDEL changes the file to a backup file in \PROJECT\WORK\DELETED before restoring REPORT.TXT. If more than one file called REPORT.TXT exists in \PROJECT\WORK\DELETED, UNDEL prompts for which version to restore.