Add multiple files of one type to the “New” context-menu

10

4

I fully understand how to add a "New" file/template to the context menu from Windows Explorer (Windows 7), by modifying the registry, as explained here for example:

How can I add an item to the 'new' context menu?

It works greats and the "filename" sub-key allow me to define a specific file located in C:\Windows\ShellNew. I thus configured there a .doc file corresponding to the template letter of my company (with logo, name, address...). Each time I want to create a letter, I just right-click and I got the template on my current directory !

Now, I would like to have several templates like this one for only 1 filetype (.doc)

The problem is that it seems that there is only one possible NullFile / FileName / Data / Command sub-key in the ShellNew key.

Is there any workaround, with a Command value for example ? Or a similar behavior without modifying the registry?

I'd just like to easily create different Word templates from my current directory, and avoid a copy/paste.

Thank you for your answers or advices.

Antoine

Posted 2013-09-18T07:13:59.683

Reputation: 131

Answers

1

The first thing you need to do is set the Command string (Right Click > New > String Value) to %SystemRoot%\System32\cmd.exe /c "%SystemRoot%\ShellNew\WordTemplates.bat ^"%1^"" (assuming that the templates are at C:\Windows\ShellNew).

Then, create a new file at C:\Windows\ShellNew\WordTemplates.bat. In this file, place the following lines of code:

@echo off
echo What document would you like to create?
echo 1 - Template 1
echo 2 - The best template
echo 3 - Sample template
echo 4 - Template 4
echo 5 - Template 5
echo 6 - Template 6
echo 7 - Template 7
echo 8 - Template 8
echo 9 - Template 9
echo 0 - Template 10
choice /c 123457890>nul
copy "%SystemRoot%\ShellNew\Template%errorlevel%.docx" %1>nul

You can replace the descriptions of each template to your preference. The file names of each template must be Template1.docx, Template2.docx, ..., Template10.docx, Template11.docx, etc. The code above will only allow 10 templates. If you would like to specify 26 templates, you can use the alphabet as the choices. You can also change the file extension to .doc.

iTechieGamer

Posted 2013-09-18T07:13:59.683

Reputation: 572

1

I know it isn't EXACTLY the same, but what about just using the Word templates? If you rename a .doc extension to .dot, it turns into a template automatically! What does this do?

If you double click that file, it will open a new Word document with that file as the template! It won't over write the template unless you explicitly tell Word to do so. Hitting Save or Save As will bring up the Save dialog, as though it was a brand new file.

What I would recommend is putting all the templates in one folder, then adding the folder as a Toolbar to the Taskbar. Always available, and you can just click, instead of right click, point to new, then click again. It would be two (one if you have a large taskbar) clicks, no waiting.

Canadian Luke

Posted 2013-09-18T07:13:59.683

Reputation: 22 162

1It's pretty much what i have today, but you go further by introducing the toolbar (it is a good idea). However, the template will open, but not be saved on any folder. It is this last behavior that i'm looking for. – Antoine – 2013-09-19T04:56:29.050

What do you mean? – Canadian Luke – 2013-09-19T05:27:30.377

1What I was looking for was to manually browse to a folder, then to decide to create a Template there. What you are proposing is to open the Template, then to save it to a folder. For some reasons, this way is less convenient for me than the other. i will wait and see if I have other answers, then assess yours – Antoine – 2013-09-19T06:30:28.690

0

Invent a new extension for the doc files you wish to add, and set them to open with Word. Call each file as a new type of file.

user756448

Posted 2013-09-18T07:13:59.683

Reputation: 1