b-man Posted May 23, 2009 Share Posted May 23, 2009 i need to create a reg file to associate a file type with a program how do i do it Link to comment Share on other sites More sharing options...
Guest Posted May 23, 2009 Share Posted May 23, 2009 (edited) Windows Registry Editor Version 5.00[HKEY_CLASSES_ROOT\.extension]@="somename"[HKEY_CLASSES_ROOT\somename]@="filetype description"[HKEY_CLASSES_ROOT\somename\shell\open\command]@="\"Driveletter:\\folder\\executable.exe\" \"%1\""[HKEY_CLASSES_ROOT\somename\DefaultIcon]@="\"Driveletter:\\folder\\executable.exe\" \"%1\""; 0 respresents the first icon in the file. change as needed[HKEY_CLASSES_ROOT\somename\DefaultIcon]@="Driveletter:\\folder\\somefile.ext,0" Edited May 23, 2009 by -X- Link to comment Share on other sites More sharing options...
b-man Posted May 23, 2009 Author Share Posted May 23, 2009 somename represents??? the program ?? Link to comment Share on other sites More sharing options...
Guest Posted May 23, 2009 Share Posted May 23, 2009 (edited) Whatever you want to name it. This will be the name of the key that has the commands, etc. The first part just defines it.Here's a real world example...Windows Registry Editor Version 5.00[HKEY_CLASSES_ROOT\.flv]@="FlashVideo"[HKEY_CLASSES_ROOT\FlashVideo]@="Flash Video File"[HKEY_CLASSES_ROOT\FlashVideo\DefaultIcon]@="D:\\Programs\\IrfanView\\Plugins\\Flash.dll,0"[HKEY_CLASSES_ROOT\FlashVideo\shell]@="Open"[HKEY_CLASSES_ROOT\FlashVideo\shell\Open][HKEY_CLASSES_ROOT\FlashVideo\shell\Open\command]@="D:\\Programs\\IrfanView\\i_view32.exe \"%1\"" Edited May 23, 2009 by -X- Link to comment Share on other sites More sharing options...
b-man Posted May 26, 2009 Author Share Posted May 26, 2009 ah i understand now it can be anything really or probably doesnt even need to be added but just there to make it all tidy Link to comment Share on other sites More sharing options...
Guest Posted May 26, 2009 Share Posted May 26, 2009 It has to be added. Like in my real world example, the .flv key points to FlashVideo. It then looks in the FlashVideo key for the commands, etc. Link to comment Share on other sites More sharing options...
b-man Posted May 26, 2009 Author Share Posted May 26, 2009 (edited) done cheersworked out that if that reg file exists i only have to change the open command and the icon if i want the icon changed Edited May 26, 2009 by b-man Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now