Can't Change Default Program .php opening in cmd

Discussion in 'Windows 7 Help and Support' started by cooldude, Dec 10, 2011.

  1. cooldude

    cooldude New Member

    Joined:
    Dec 10, 2011
    Messages:
    2
    Likes Received:
    0
    Okay so i tried everything to get my .php open in notepad again. the thing i have done

    Control Panel\Programs\Default Programs\Set Associations

    and.

    Control Panel\Programs\Default Programs\Set Default Programs

    NotePad isn't in the Second one
     
  2. Elmer

    Elmer Extraordinary Member

    Joined:
    Mar 5, 2010
    Messages:
    3,873
    Likes Received:
    284
    Hi cooldude and Welcome to The Forum,

    Just wondering, if you right-click a php file do you get an open with... option?

    If you save this code as a .reg file, you get a "Use Notepad" option in your context menu, probably safer than changing the file association.

    Code:
    Windows Registry Editor Version 5.00
    
    [HKEY_CLASSES_ROOT\*\shell\Use Notepad]
    @="Use Notepad"
    "Icon"="C:\\Windows\\Notepad.exe,0"
    
    [HKEY_CLASSES_ROOT\*\shell\Use Notepad\command]
    @="notepad.exe %1"
    
     
  3. davehc

    davehc Microsoft MVP
    Premium Supporter Microsoft MVP

    Joined:
    May 1, 2008
    Messages:
    5,116
    Likes Received:
    301
    Try changing the extension to html. You may then be able to open it with a browser or, if you have one installed, a web design program.
     
  4. Basher

    Basher Honorable Member

    Joined:
    Mar 15, 2009
    Messages:
    367
    Likes Received:
    12
    Hi,
    1. Right click the php file icon
    2. Click "Open With" (if open with is not there hold down the Shift Key and right click again) and click "choose default program"
    3. Locate the program you want to use to open the file (click the little down arrow to right of the dialogue windows to see more programs or use the browse button)
    4. Make sure the check box that says "Always use the selected program to open this kind of file" is ticked and then click the OK button
    Regards

    Basher
     
    1 person likes this.

Share This Page

Loading...