Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I am attempting to create new items in this context menu.

enter image description here

Some file extensions cannot be added. I have tried both the TweakUI method and the manual registry editing method but both seem to yield nothing (no item appears in the menu) for particular file types (.php, in this case).

Ultimately I want to be able to select a .PHP file (could be blank, or a template) from the New menu and have it spawned where the context menu is brought up. The Template section of TweakUI could do this, if it were not for the fact that .php files refuse to work.

Any ideas why I am unable to add a .php item to the 'New' menu?

share|improve this question
add comment

1 Answer

up vote 3 down vote accepted

I believe you must associate the .PHP extension first with a program.

share|improve this answer
    
Previously, assoc.php=php_auto_file. I re-associated it to Notepad++_file, and there was no change. Give or take a few association changes, and it started working - I can now add .php files via the 'New' menu. However, I am unsure at what point this started working - 'assoc .php' now returns '.php=Notepad++_file', for the record. Thanks for your help, Cal. –  Thomas Sep 12 '09 at 8:20
    
@Thomas, it's possible that the explorer shell doesn't immediately pick up file association changes (or rather, that the New/template system doesn't) which might explain why you didn't see the change as soon as you made it. Anyway, good question, starred for later reference. –  JMD Oct 1 '09 at 15:50
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.