Freigeben über


Recover

Recovers readable information from a bad or defective disk.

Syntax

recover [Drive**:**][Path] FileName

Parameters

[ Drive : ][ Path ] FileName   : Specifies the location and name of the file you want to recover.

/?   : Displays help at the command prompt.

Remarks

  • The recover command reads a file sector by sector and recovers data from the good sectors. Data in bad sectors is lost.

  • Limitation on [drive:][path]filename

    You cannot use wildcards (* and ?) with the recover command. You must specify a file.

  • Reentering lost data

    Because all data in bad sectors is lost when you recover a file, you should recover files one at a time. You can use this method to edit each file and reenter missing information after you recover the file.

  • Recovering bad sectors

    Bad sectors reported by chkdsk were marked as "bad" when your disk was first prepared for operation. They pose no danger, and recover does not affect them.

Examples

To recover the file Story.txt in the \Fiction directory in drive D:, type:

recover d:\fiction\story.txt

Formatting legend

Format

Meaning

Italic

Information that the user must supply

Bold

Elements that the user must type exactly as shown

Ellipsis (...)

Parameter that can be repeated several times in a command line

Between brackets ([])

Optional items

Between braces ({}); choices separated by pipe (|). Example: {even|odd}

Set of choices from which the user must choose only one

Courier font

Code or program output

Chkdsk

Chkdsk

Command-line reference A-Z