Disk or File System Error Message Importing Registry File This article was written about products for which Microsoft no longer offers support. Therefore, this article is offered "as is" and will no longer be updated.
This article was previously published under Q168794 On This PageSYMPTOMS
When you try to import a registry (.reg) file by using a batch (.bat)
file, you may receive the following error message:
Cannot import <filename>.reg: Error opening the file. There may be a
disk or file system error.
CAUSE
The .bat file is not in the same folder as the .reg file.
RESOLUTION
To resolve this issue, use either of the following methods:
Method 1Move the .bat file to the folder that contains the .reg file.Method 2Move the .reg file to the folder that contains the .bat file.MORE INFORMATION
A batch file for importing a .reg file might look like this:
start regedit <filename>.reg
| Article Translations
|


Back to the top
