Windows NT Short File Extensions

Posted On 2007-05-03 by FortyPoundHead
Keywords: Windows NT Short File Extensions (Windows NT 4.x)
Tags:  Windows NT Windows 2000
Views: 2001

Windows NT evaluates file extensions on the first three characters, therefore 'filename.html' is actually treated as 'filename.htm'. The side affect is that if you use a command such as 'del *.htm' to delete all the '.htm' files, you will also delete all '.html' files as well. This functionality can be disabled by modifying the registry.
To turn this setting off, editing the key found below and set the value of 'Win95TruncatedExtensions' to '0', to turn the feature back on, set the value back to '1'.

Key: [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\FileSystem]
Value Name: Win95TruncatedExtensions
Data Type: REG_DWORD
Data: (0 = disable , 1 = enable)

About the Author

FortyPoundHead has posted a total of 1974 articles.

Comments On This Post

No comments on this post yet!

Do you have a thought relating to this post? You can post your comment here. If you have an unrelated question, you can use the Q&A section to ask it.

Or you can drop a note to the administrators if you're not sure where you should post.

Your IP address is:

Before you can post, you need to prove you are human. If you log in, this test goes away.

Code Links