How to fix Registry error “Cannot import… There may be a disk or file system error”
When calling a registry file (.reg) from within a batch file (.bat), the following error message is displayed: “Cannot import filename.reg: Error openingthe file. There may be a disk or file system error.”
1. Eliminate spaces from the path of the registry file (example: instead of “C:folder namefile name.reg” use “C:folder_namefile_name.reg”)
2. Either use an absolute path for the registry file inside the batch file, or write %~dp0 in front of the registry file inside the batch file to use the current directory as path.