Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Is it possible to add a new entry in the context menu New which will generate a file based on a fixed template?

enter image description here

For example: I'd like to create a new html file where its content should be:

  <title>New File</title>
  <!-- Body Contents -->
share|improve this question
Possible duplicate of How can I add an item to the 'new' context menu? – and31415 Mar 31 '14 at 7:42
@and31415 No, it is not duplicated. It asks for new approach. The creating of new file from predefined template. – sємsєм Mar 31 '14 at 14:16

Actually, and31415's link should work as you'd expect. Based on linked answer:

Just open regedit and navigate to [HKEY_CLASSES_ROOT\.html\ShellNew]. Create a new String Value named FileName (no spaces, note uppercase letters). Double-click it and give it a value: html.html.

Edit String

Next, open explorer, navigate to %APPDATA%\Microsoft\Windows\Templates and create a file called html.html. This is your template file where you can put the desired content to appear in each new html file that you create from context menu.

share|improve this answer
I have done what you regarded and I performed restarting Windows, but nothing I have got. This is a screen shot showing what I have done: – sємsєм Mar 31 '14 at 15:34

Your Answer


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.