Windows 7 Can't Change Default Program .php opening in cmd

cooldude

New Member
Joined
Dec 10, 2011
Messages
2
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
 


Solution
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
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"
 


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.
 


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
 


Solution
Back
Top