You are currently offline, waiting for your internet to reconnect

Err Msg: Cannot Import <File>. Error Opening the File.

This article was previously published under Q187316
This article has been archived. It is offered "as is" and will no longer be updated.
IMPORTANT: This article contains information about editing the registry.Before you edit the registry, make sure you understand how to restore itif a problem occurs. For information about how to do this, view the"Restoring the Registry" Help topic in Regedit.exe or the "Restoring aRegistry Key" Help topic in Regedt32.exe.
When you double-click a registry entry (.reg) file, you may receive thefollowing error message:
Cannot import <path to file>. Error opening the file. There may be a disk or file system error.
This error message can occur if the .reg file is located in a folder whosename contains spaces.
WARNING: Using Registry Editor incorrectly can cause serious problems thatmay require you to reinstall your operating system. Microsoft cannotguarantee that problems resulting from the incorrect use of RegistryEditor can be solved. Use Registry Editor at your own risk.

For information about how to edit the registry, view the "Changing KeysAnd Values" Help topic in Registry Editor (Regedit.exe) or the "Add andDelete Information in the Registry" and "Edit Registry Data" Help topicsin Regedt32.exe. Note that you should back up the registry before you editit.

To resolve this issue, use either of the following methods:
  • Move the .reg file to a folder whose name does not contain spaces.
  • Use Registry Editor to modify the way Regedit.exe examines the path. To do so, use registry editor to modify the data value for the "(Default)" value in the following registry key:
    Change the data value to:
    regedit.exe "%1"
    NOTE: Make sure to include the quotation marks. After you make this change, quit Registry Editor and restart the computer.

Article ID: 187316 - Last Review: 12/05/2015 08:46:09 - Revision: 1.1

Microsoft Windows 95, Microsoft Windows NT Workstation 4.0 Developer Edition, Microsoft Windows NT Server 4.0 Standard Edition, Microsoft Windows NT Server 4.0 Enterprise Edition

  • kbnosurvey kbarchive kberrmsg kbprb KB187316