Jump to content

Recommended Posts

Posted (edited)

i was wondering about nfo files and opening them with notepad.

what i was hoping was to add a second icon to notepad which can be used as the icon for nfo and diz files. but i wasnt sure if there would be anyway to associate the file types in the registry with this icon that id have added to notepad.

Edited by ScubaSteve

Posted

yup i got that one included in the reg tweaks thing. i was just hoping there was a way to set the standard icon for nfo and diz icons to notepad.exe,1 or notepad.exe,2 depending on the icon place.

Posted

There are also alot of NFO readers out there that will display the NFO correctly , Alot of times the NFO contain Ascii that is ment to draw a picture on the screen , Notepad will show you , but NFO readers make it look better

Rob

Posted

This is what I'm using:

[HKEY_CLASSES_ROOT\.nfo]
@="Infofile"
"PerceivedType"="text"
"Content Type"="text/plain"

[HKEY_CLASSES_ROOT\.nfo\PersistentHandler]
@="{5e941d80-bf96-11cd-b579-08002b30bfeb}"

[HKEY_CLASSES_ROOT\Infofile]
@="Infofile"
"EditFlags"=dword:00010000
"BrowserFlags"=dword:00000008

[HKEY_CLASSES_ROOT\Infofile\DefaultIcon]
@="%systemroot%\\system32\\shell32.dll,221"

The last part is what controls the icon.

In your case it should be:

[HKEY_CLASSES_ROOT\Infofile\DefaultIcon]
@="%systemroot%\\notepad.exe,1"

This can also be done for other filetypes, just make sure that the filename in [HKEY_CLASSES_ROOT\Filename] is the same as the one under [HKEY_CLASSES_ROOT\.extension] (the @="filename"-part). This is because of the relation between the extension and the filetype.

Take a look in the registry under HKEY_CLASSES_ROOT to get the idea of how it works with other known filetypes. For example .mpeg and mpegfile.

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...