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.

This question already has an answer here:

Whenever I need to create a C, C++, Batch, HTML, or Javascript file I need to open a new text document and save it with a different file extension. Is there a way I can add a new option to the Right Click->New menu (on a Windows computer) so that I can create a new program file directly from there?

Thanks -Zach

share|improve this question

marked as duplicate by techie007, Tog, Mokubai, Shakehar, Carl B Oct 14 '13 at 7:14

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

add comment

1 Answer

up vote 2 down vote accepted

Create a file, add the content below, save it as whatever.reg, and run it.

Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\.php\ShellNew]
"NullFile"=""

Note: Replace .php with the file extension you want.

enter image description here

I believe this should work for you.

share|improve this answer
add comment

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