Draft for Information Only
ContentMS DOS Command: RESTORE.EXE
MS DOS Command: RESTORE.EXEReference from Microsoft MS-DOS cmd help DescriptionRestores files that were backed up by using any version of BACKUP from MS-DOS versions 2.0 through 5.0. If you are restoring files that were backed up using the MSBACKUP program in MS-DOS 6 or later, use that version of the MSBACKUP program to restore those files. You can restore files from similar or dissimilar disk types. SyntaxRESTORE drive1: drive2:[path[filename]] [/S] [/P] [/B:date] [/A:date] [/E:time] [/L:time] [/M] [/N] [/D]
Parameters
Switches
Related CommandFor information about backing up files, see the MSBACKUP command. RemarksChecking restored filesOnce a file has been restored, you can use the DIR or TYPE command to make sure the file was restored properly. Limitations on RESTOREYou cannot use the RESTORE command to restore system files (IO.SYS and MSDOS.SYS). RESTORE does not work with drives that have been redirected with the ASSIGN or JOIN command. Compatibility with previous versions of BACKUPThe MS-DOS 6.22 RESTORE command can restore files that were backed up by using the BACKUP command in MS-DOS versions 2.0 through 5.0. RESTORE exit codesThe following list shows each exit code and a brief description of its meaning:
You can use the ERRORLEVEL parameter on the IF command line in a batch program to process exit codes returned by RESTORE. For an example of a batch program that processes exit codes, see the Listing the names of backed-up filesUse the /D switch to see a list of the backed up files. If you specify filename with the /D switch, RESTORE displays a list of the backed up files that match the name you specify. If you use the /D switch, RESTORE does not restore any files. Restoring to different drivesWhile you must restore files to their original directory, you can restore them to a different drive. For example, files backed up from the C:\MYFILES\*.* directory can be restored to the D:\MYFILES\*.* directory. ExamplesTo restore the file INVEST.MNT from the backup disk in drive A to the IRS directory on drive C, type the following command: restore a: c:\irs\invest.mnt MS-DOS prompts you to insert the backup disk into drive A. Once the backup disk is in drive A, press ENTER to continue. Suppose you backed up all of the files in the directory \USER\ADAMS on drive C. To restore these files, insert the backup disk in drive A and type the following command: restore a: c:\user\adams\*.* It is important that you specify *.* for filename. Otherwise, the RESTORE command attempts to restore a file named ADAMS in the USER directory. To restore a complete hard disk from a backup disk (or disks) in drive A, type the following command: restore a: c:\*.* /s The /S switch and the wildcards (*.*) specify that RESTORE is to restore all backed-up files to their original directories and subdirectories on drive C. ©sideway ID: 110700249 Last Updated: 7/29/2011 Revision: 0 Latest Updated Links
![]() ![]() ![]() ![]() ![]() |
![]() Home 5 Business Management HBR 3 Information Recreation Hobbies 8 Culture Chinese 1097 English 339 Travel 18 Reference 79 Computer Hardware 254 Software Application 213 Digitization 37 Latex 52 Manim 205 KB 1 Numeric 19 Programming Web 289 Unicode 504 HTML 66 CSS 65 SVG 46 ASP.NET 270 OS 431 DeskTop 7 Python 72 Knowledge Mathematics Formulas 8 Set 1 Logic 1 Algebra 84 Number Theory 206 Trigonometry 31 Geometry 34 Calculus 67 Engineering Tables 8 Mechanical Rigid Bodies Statics 92 Dynamics 37 Fluid 5 Control Acoustics 19 Natural Sciences Matter 1 Electric 27 Biology 1 |
Copyright © 2000-2025 Sideway . All rights reserved Disclaimers last modified on 06 September 2019