• Adding Items to Windows 7 Context Menu
    0 replies, posted
Right. This is a simple one. I have a program that I wrote in C#, stored in [b]C:/Tools/UETextureConvert/UETextureConvert_Singular.exe[/b]. I want to make it so that when I right-click a file that ends in [b].mat[/b], there is an option in the main context menu that says "UE Configure", that runs this program. I have followed this tutorial, and a few others like it: [url]http://stackoverflow.com/questions/2123762/add-menu-item-to-windows-context-menu-only-for-specific-filetype/2124396#2124396[/url] I have this C# code that I run: [code] Registry.SetValue(@"HKEY_CURRENT_USER\Software\Classes\uemat\shell\configure\command", "UE Configure", @"""C:\Tools\UETextureConvert\UETextureConvert_Singular.exe"" ""%1"""); Registry.SetValue(@"HKEY_CURRENT_USER\Software\Classes\.mat", null, "uemat"); Registry.SetValue(@"HKEY_CLASSES_ROOT\.mat", null, "uemat");[/code] But after running it, nothing changes. Files that end in [b].mat[/b] have no new options. Can anyone help me out? Thanks.
Sorry, you need to Log In to post a reply to this thread.