Can’t Open EXE Files in Windows 10/8/7

 

Method 1: Use the Command Prompt to Fix EXE File Association

  1. Open Command Prompt as Administrator:

    • Press Ctrl + Shift + Esc to open Task Manager.

    • Click File > Run new task.

    • Type cmd and check Create this task with administrative privileges.

    • Click OK.

  2. Run the Following Command:

    perl
    assoc .exe=exefile ftype exefile="%1" %*

    This restores the default association for .exe files.


Method 2: Fix the Registry Manually

⚠️ Warning: Editing the registry can be risky. Back it up first:
File > Export in Registry Editor.

  1. Press Windows + R, type regedit, and press Enter.

  2. Navigate to:

    HKEY_CLASSES_ROOT\.exe
    • Make sure the default value is:

      nginx
      exefile
  3. Then go to:

    arduino
    HKEY_CLASSES_ROOT\exefile\shell\open\command
    • Set the default value to:

      perl
      "%1" %*
  4. Restart your PC.


Method 3: Use a .REG Fix File

  1. Open Notepad.

  2. Paste the following code:

    reg
    Windows Registry Editor Version 5.00 [HKEY_CLASSES_ROOT\.exe] @="exefile" "Content Type"="application/x-msdownload" [HKEY_CLASSES_ROOT\exefile] @="Application" "EditFlags"=dword:00000000 "FriendlyTypeName"="@shell32.dll,-153" [HKEY_CLASSES_ROOT\exefile\shell\open\command] @="\"%1\" %*" [HKEY_CLASSES_ROOT\exefile\shell\runas\command] @="\"%1\" %*" [HKEY_CLASSES_ROOT\exefile\shellex] [HKEY_CLASSES_ROOT\exefile\shellex\PropertySheetHandlers] [HKEY_CLASSES_ROOT\exefile\shellex\PropertySheetHandlers\PEShim] @="{F9B2D15E-6A88-4F9B-AF96-EF6C8A2D2625}"
  3. Save the file as fix_exe.reg.

  4. Double-click it to merge it into the registry.

  5. Restart your PC.


Method 4: Scan for Malware

Sometimes malware interferes with .exe associations.

  • Use Windows Defender or a free tool like Malwarebytes.

  • Do a full system scan and remove threats.


Method 5: Create a New User Account

Corruption in your user profile can cause this issue.

  1. Go to Settings > Accounts > Family & other users.

  2. Add a new user account.

  3. Sign in with the new account and check if .exe files open.

Comments

Popular posts from this blog

حاسبة تاريخ الميلاد BIRTH DATE CALCULATOR