reg import

Copies the contents of a file that contains exported registry subkeys, entries, and values into the registry of the local computer.

For examples of how to use this command, see Examples.


Reg import FileName


Parameter Description
<FileName> Specifies the name and path of the file that has content to be copied into the registry of the local computer. This file must be created in advance by using reg export.
/? Displays help for reg import at the command prompt.


The following table lists the return values for the reg import operation.

Value Description
0 Success
1 Failure


To import registry entries from the file named AppBkUp.reg, type:

reg import AppBkUp.reg

Additional references

Command-Line Syntax Key