1
I use following registry macro to add a contextual menu on .XML file
Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOT\xmlfile\shell\FormatXML]
@="Format-XML"
[HKEY_CLASSES_ROOT\xmlfile\shell\FormatXML\command]
@="D:\\Program Files (x86)\\Tools\\XFormat\\XFormat.bat %1"
Currently, I have received a new PC in Windows 7 and I run same Registry script to add explorer contextual menu. Now, when I check if menu is visible, I don't see anything !
I have modified my Registry script to define the same context using ".xml" instead of "xmlfile" but nothing happens.
I have then replace ".xml" by ".txml", I have changed the type of XML file to TXML and ... that's working.
What happens ?
How can I define an explorer context menu on XML file ?
My XML registry is following
Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOT\.xml]
@="xmlfile"
"Content Type"="text/xml"
"PerceivedType"="text"
[HKEY_CLASSES_ROOT\.xml\OpenWithProgids]
"VisualStudio.xml.10.0"=""
"VisualStudio.xml.d25f0747"=""
[HKEY_CLASSES_ROOT\.xml\PersistentHandler]
@="{7E9D8D44-6926-426F-AA2B-217A819A5CCE}"
[HKEY_CLASSES_ROOT\.xml\shell]
[HKEY_CLASSES_ROOT\.xml\shell\FormatXML]
@="Format-XML"
[HKEY_CLASSES_ROOT\.xml\shell\FormatXML\command]
@="D:\\Program Files (x86)\\Tools\\XFormat\\XFormat.bat %1"