Jump to content

reg file for file association


b-man

Recommended Posts


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 by -X-
Link to comment
Share on other sites

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 by -X-
Link to comment
Share on other sites

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

done cheers

worked 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 by b-man
Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...