RESTORE Command Requires Path and Filename of Files to Restore (75786)



The information in this article applies to:

  • Microsoft MS-DOS operating system 3.3
  • Microsoft MS-DOS operating system 4.0
  • Microsoft MS-DOS operating system 4.01
  • Microsoft MS-DOS operating system 5.0
  • Microsoft MS-DOS operating system 5.0a
  • Microsoft MS-DOS operating system 6.0
  • Microsoft MS-DOS operating system 6.2
  • Microsoft MS-DOS operating system 6.21
  • Microsoft MS-DOS operating system 6.22

This article was previously published under Q75786

SUMMARY

If use the RESTORE command and specify the drives only (for example, RESTORE A: C:), the following error message is displayed:
WARNING! No files were found to restore.

MORE INFORMATION

The RESTORE command must have the complete path and filename of the file(s) that are to be restored. The RESTORE command restores the file(s) and directories just as they were before the BACKUP. Wildcards and switches may be used as substitutes.

The following examples illustrate different wildcards and switches that may be used with the RESTORE command, and the results of the given command. The drives used in the examples may be replaced by any other legitimate drive (including a RAM drive).

RESTORE A: C:\*.*

Restores files that were backed up from the root directory. Note: This command will return the following error message if only subdirectories were backed up:

WARNING! No files were found to restore.

RESTORE A: C:\ /S

Restores all subdirectories and their files from the given backup.

RESTORE A: C:\*.* /S

Restores all files in root directory and all files in subdirectories for the given backup.

RESTORE A: C:

Restores all files backed up from the current directory of drive C.

REFERENCES

"Microsoft MS-DOS User's Guide and Reference," version 5.0, pages 555-557.

"Microsoft MS-DOS User's Guide," version 4.01, pages 119-120.

Modification Type:MajorLast Reviewed:5/12/2003
Keywords:KB75786