Reference > Script steps reference > Files script steps > Recover File
 

Recover File

Recovers a damaged FileMaker Pro Advanced file.

See also 

Options 

With dialog specifies whether to display a dialog box after the script step is performed, showing how many bytes of data were recovered, the number of records and field values skipped, and the number of field definitions recovered.

Setting With dialog to Off applies only to default recovery operations. The Advanced Recovery Options dialog box is not supported.

Specify output file specifies the file to be recovered. For more information, see Creating file paths. If you don't select a source file, the Open Damaged File dialog box displays at runtime.

Compatibility 

 

Product 

Supported 

FileMaker Pro Advanced 

Yes 

FileMaker Go 

No 

FileMaker WebDirect 

No 

FileMaker Server 

No 

FileMaker Cloud products 

No 

FileMaker Data API 

No 

Custom Web Publishing 

No 

Runtime solution 

Yes 

Originated in 

FileMaker Pro 6.0 or earlier

Description 

The Recover command makes an aggressive attempt to reopen a damaged file. It is intended for data recovery, not file repair. Do not use the Recover command as part of routine file maintenance.

FileMaker Pro Advanced attempts to recover as much of the information in a damaged file as possible, and then creates a new, recovered file. The original file is not deleted or replaced.

Notes 

Before you begin, be sure you have enough disk space for the recovered file. If there isn't enough space, the recovered file won't be usable.

Example 1 

Opens Invoices Backup, then attempts to recover the database if it is damaged.

Open File [Open hidden: Off ; "Invoices Backup"]
If [Get ( LastError ) = 807]
Recover File [With dialog: Off; "Invoices Backup.fmp12"]
End If

Related topics 

Script steps reference (alphabetical list)

Script steps reference (category list)