INFO: Shell Extensions for File Names with No File Extension

ID: Q236014


The information in this article applies to:
  • Microsoft Win32 Application Programming Interface (API), included with:
    • Microsoft Windows 98
    • Microsoft Windows NT 4.0


SUMMARY

Shell extensions for file names with no file extension can be registered under the following:


[HKEY_CLASSES_ROOT\.] 
For example, to associate a program (for example, Notepad.exe) to open all files with no extension, use the following registry keys:

[HKEY_CLASSES_ROOT\.]
@=""

[HKEY_CLASSES_ROOT\.\shell]

[HKEY_CLASSES_ROOT\.\shell\open]

[HKEY_CLASSES_ROOT\.\shell\open\command]
@="<path to notepad.exe> %1" 
Here is an alternative method:

[HKEY_CLASSES_ROOT\.]
@="NoExtFile"

[HKEY_CLASSES_ROOT\NoExtFile]

[HKEY_CLASSES_ROOT\NoExtFile\shell]

[HKEY_CLASSES_ROOT\NoExtFile\shell\open]

[HKEY_CLASSES_ROOT\NoExtFile\shell\open\command]
@="<path to notepad.exe> %1" 
NOTE: "NoExtFile" is not a predefined name, and therefore it can be anything. Adding other shell extensions is similar to adding shell extensions for file names with extensions.


REFERENCES

Please refer to the Platform SDK documentation on Shell Extensions for more information.

Additional query words: filename

Keywords : kbExtension kbNTOS400 kbSDKPlatform kbShellGrp kbWinOS98 kbDSupport
Version : winnt:4.0
Platform : winnt
Issue type : kbinfo


Last Reviewed: August 26, 1999
© 2000 Microsoft Corporation. All rights reserved. Terms of Use.