View Full Version : file extension map (W2K)
preetham
03-27-2002, 08:11 AM
HI,
Where can i find the file extension <-> Application map.
If windows gets a file by the name abc.txt, where does it to find out that the default app to open is Notepad.exe.
Thanks, Appricaite the help
Preetham.
Simon Clausen
03-27-2002, 10:31 AM
The majority of that information is stored in the [HKEY_CLASSES_ROOT] hive. For example, look-up the extension ".txt" at [HKEY_CLASSES_ROOT\.txt] which tells you that ".txt" should be treated as a "txtfile". So then open [HKEY_CLASSES_ROOT\txtfile] this key includes some sub-keys that define how that file type should be handled:
- [DefaultIcon] defines the icon
- [...\shell\open\command] specifies which command to use to open the file (e.g. notepad.exe)
- the [print] subkeys specify how the file should be printed if Print is selected from the right-click context menu.
Hope this helps you get started.
Regards,
Simon Clausen
---
WinGuides.com - Windows Guide Network
<a target="_blank" href=http://www.winguides.com/>http://www.winguides.com/</a>
gangsta
03-27-2002, 11:35 PM
Simon,
does this supercede what extensions are defined in INI if it is found in both?
Powered by vBulletin™ Version 4.1.0 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.