How would I achieve what is shown in the image below? Assume the first 3 items are text files each using different text file templates and the 4th item is one not using a template i.e. just a blank text file. Note that txt is only an example and I would like to expand this to other file extensions.
This problem was not solved by any of the answers in How can I add an item to the 'new' context menu?, so I made a new question as suggested.
A file (a.txt) was created and placed in C:\WINDOWS\SHELLNEW. Then the tests below were performed.
Using this code would result in creating a file with the .000 extension and not txt.
Windows Registry Editor Version 5.00; new file type[HKEY_CLASSES_ROOT\.000]@="000"; template[HKEY_CLASSES_ROOT\.000\ShellNew]"FileName"="a.txt"; file type name[HKEY_CLASSES_ROOT\000]@="Test"
Adding a FileName key to the .txt reg key only allowed 1 template to be used since it only allowed a path to 1 file.
[HKEY_CLASSES_ROOT\.txt\ShellNew]"FileName"="a.txt"
Using this code added a context menu item but it did not use the specified template and context menu name.
Windows Registry Editor Version 5.00; new file type[HKEY_CLASSES_ROOT\.000]@="textfile"; template[HKEY_CLASSES_ROOT\.000\ShellNew]"FileName"="a.txt"; file type name[HKEY_CLASSES_ROOT\000]@="Test"
Using this code would result in no context menu item to appear.
Windows Registry Editor Version 5.00; new file type[HKEY_CLASSES_ROOT\.000]@="txt"; template[HKEY_CLASSES_ROOT\.000\ShellNew]"FileName"="a.txt"; file type name[HKEY_CLASSES_ROOT\000]@="Test"