Can't Change Default Program .php opening in cmd

#1
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
 


Elmer

Extraordinary Member
#2
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"
 


davehc

Essential Member
Premium Supporter
Microsoft MVP
#3
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.
 


Basher

Honorable Member
#4
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
 


This website is not affiliated, owned, or endorsed by Microsoft Corporation. It is a member of the Microsoft Partner Program.