MSFN Forum: was wondering about nfo files and notepad - MSFN Forum

Jump to content



Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

was wondering about nfo files and notepad Rate Topic: -----

#1 User is offline   Scubar 

  • - Local Smartass -
  • PipPipPipPipPip
  • Group: Members
  • Posts: 829
  • Joined: 20-May 05

Posted 21 July 2005 - 07:50 PM

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.

This post has been edited by ScubaSteve: 21 July 2005 - 07:50 PM



#2 User is offline   Kelsenellenelvian 

  • WPI Guru
  • Group: Developers
  • Posts: 7,756
  • Joined: 18-September 03
  • OS:Windows 7 x64
  • Country: Country Flag

Posted 21 July 2005 - 08:37 PM

Here is the reg file I got that makes it so .nfo files are opened with notepad...

This post has been edited by kelsenellenelvian: 21 July 2005 - 08:38 PM


#3 User is offline   Scubar 

  • - Local Smartass -
  • PipPipPipPipPip
  • Group: Members
  • Posts: 829
  • Joined: 20-May 05

Posted 22 July 2005 - 10:49 AM

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.

#4 User is offline   phillyman2004 

  • Robert
  • Pip
  • Group: Members
  • Posts: 87
  • Joined: 27-August 04

Posted 22 July 2005 - 11:17 AM

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

#5 User is offline   DL. 

  • Tweaker or whatever I happen to be focused on at the moment..
  • PipPipPip
  • Group: Members
  • Posts: 489
  • Joined: 05-March 05
  • OS:Windows 7 x64
  • Country: Country Flag

Posted 22 July 2005 - 11:44 AM

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.

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users



All trademarks mentioned on this page are the property of their respective owners
Copyright © 2001 - 2011 msfn.org
Privacy Policy