Forum Discussion

Lodgew's avatar
Lodgew
Iron Contributor
Jan 10, 2025

How to completely dissociate .hex files from Notepad?

My computer keeps thinking that my hex files are txt files.
Implication: I have an app to update a device. This app has a dropdown box to select bin or hex. It will not find my hex file.

1 Reply

  • gastone's avatar
    gastone
    Copper Contributor

     Use Command Prompt or PowerShell

        Open Command Prompt or PowerShell:
            Press Win + S, type cmd or powershell, and press Enter.
        Remove the Association: Run the following command to delete the .hex file association:

    assoc .hex=

     

    2. Edit the Registry

    ⚠️ Be cautious when editing the registry. Back up your registry before proceeding.

        Open the Registry Editor:
            Press Win + R, type regedit, and press Enter.

        Navigate to the File Type:
            Go to: HKEY_CLASSES_ROOT\.hex

        Delete or Edit the Key:
            If the key points to Notepad, delete the Default value or modify it to an empty string.

        Clean the Associated Program Entry:
            Navigate to: HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\.hex
            Delete the subkeys like OpenWithList or UserChoice to remove any lingering associations.

        Restart Your Computer to apply changes.

     

    Bye Gastone

Resources