DBRestore.vbs
DBRestore is a command line tool designed to help users backup and restore their Windows XP Embedded databases. DBRestore automates this process by backing up or restoring an MDF database file at the specified path.
DBRestore is a ValueAdd tool, meaning that it has not undergone the rigorous testing required by other, officially supported, tools.
DBRestore Command Line Syntax
The DBRestore command line syntax follows:
DBRESTORE ComputerName BackupPath [/CB|/CREATEBACKUP]
The following table describes the command line switches.
| Switch | Description |
|---|---|
| createbackup | Specifies that you want to create a backup of the existing database. In this case, BackupPath must point to a valid location to create the backup file. If you do not specify a filename or do not use the .MDF extension, DBRestore will create a backup filename with the same name as the existing database file. |
| cb | Same as createbackup. |
The following table describes the input parameters.
| Input field | Meaning |
|---|---|
| computername | Specifies the name of the computer. Can be "local" (no quotes) or the name of a computer.
The named computer must be running an XP Embedded database. |
| backuppath | Specifies the path location for the backup file to be saved or restored. Backuppath can be a path to a folder, or to a specific file. If a filename is specified, it must be a .MDF file. If a folder is specified, a file must exist in the folder matching the existing database file if you are attempting to restore. Backuppath is not case sensitive. |
Note Dbrestore can remove folders under the \\computername\Repositories directory that are not used in the database after it has been restored.
© 2006 Microsoft Corporation. All rights reserved.