To be backword compatible with 16-bit FAT partitions, both the VFAT and the NTFS file systems create two names for each file, the long filename and a short filename compatible with the FAT file system.
Welcome to Bucaro TecHelp!

Welcome to Bucaro TecHelp!
Maintain Your Computer and Use it More Effectively
to Design a Web Site and Make Money on the Web

[About BTH]  [User Agreement]  [Privacy Policy]  [Site Map]  [Contact Form]  [Advertise on BTH]  [News Feed]

Google
Web
This Site
Your Ad Here!
Your ad here for one full year, only $20. Send me your ad copy, up to six lines, I'll post it ASAP. After you inspect your ad online, you can pay through PayPal.
Click here for more information.

Disable Long Filenames to Improve Window's Performance

Starting with Windows 95, Microsoft introduced the Virtual File Allocation Table (VFAT). VFAT provided 32-bit disk access and long filenames (up to 255 characters). A long filename can include characters that are illegal in an MS-DOS compatible 8.3 file name, like spaces and dots.

To be backword compatible with 16-bit FAT partitions, both the VFAT and the NTFS file systems create two names for each file, the long filename and a short filename compatible with the FAT file system.

Note: The MS-DOS compatible 8.3 file name is created by taking the first six characters of the long filename (ignoring spaces), add "~1 (or higher number) and then using the first three letters after the last period as the file extension.

If you have no legacy 16-bit programs or hardware devices installed on your computer, the 8.3 file names are not neccessary. Disabling 8.3 file name creation can increase the performance of NTFS partitions. Below is a simple script you can use to check and configure the registry key NtfsDisable8dot3NameCreation.

Dim wshShell, RegKey
Set wshShell = Wscript.CreateObject("Wscript.Shell")

RegKey = "HKLM\SYSTEM\CurrentControlSet\Control\FileSystem"

If wshShell.RegRead(RegKey & "NtfsDisable8dot3NameCreation") Then
If MsgBox("NtfsDisable8dot3NameCreation = 1, Set to 0?", vbQuestion + vbYesNo, "NtfsDisable8dot3NameCreation") = vbYes Then
wshShell.regWrite RegKey & "NtfsDisable8dot3NameCreation", 00000000, "REG_DWORD"
End If
Else
If MsgBox("NtfsDisable8dot3NameCreation = 0, Set to 1?", vbQuestion + vbYesNo, "NtfsDisable8dot3NameCreation") = vbYes Then
wshShell.regWrite RegKey & "NtfsDisable8dot3NameCreation", 00000001, "REG_DWORD"
End If
End If

Paste this script into Windows Notepad and save the file with the name dis8dot3.vbs. Double click on the file name to execute it and a popup message box will display the value of the NtfsDisable8dot3NameCreation key on your computer and ask if you want to change it. If the NtfsDisable8dot3NameCreation key is set to one, clicking on the Yes button will change it to zero. If it's set to zero, clicking on the Yes button will change it to one.

When you restart Windows, the new configuration will take effect.

To learn more, download the free ebook Use the Windows Scripting Host to Master Your Computer.

Note: The script in this article is provided AS IS without warranty of any kind. Bucaro TecHelp disclaims all implied warranties including, without limitation, any implied warranties of merchantability or of fitness for a particular purpose. The entire risk arising out of the use of the script remains with you. To be safe, you should make a backup copy of your computers registry before using this script. In no event shall Bucaro TecHelp be liable for any damages whatsoever arising out of the use of or inability to use this script.

Computer Sections

RSS Feed RSS Feed

Windows System Administration
Security Risks and Ways to Decrease Vulnerabilities in a 802.11b Wireless Environment
Configure Vista's Data Execution Prevention
Internet Connection Sharing in Windows XP
How to Backup Mails and Address Book of Outlook Express
Windows 2000 Security Overview
Kill The Messenger (Service)
Use the HOSTS File to Block Web Sites
FreeDOS
A Day in the Life of a System Administrator
Microsoft Licensing Explained
Configure Windows Indexing Service for Performance
Configuring Windows as a NTP (Network Time Protocol) Server
Font Basics
Three Important Techniques for Securing a Wireless Network
Defend Your Business with a Firewall
Msconfig - Microsoft's Secret Weapon to Increase Your Computer's Speed
Choosing a Tape Drive
PC Technician Certifications and Professional Organizations
PC Technician's Guide to Providing Telephone Support
PC Technician's Software Copyright Responsibilities
CompTIA A+ Complete Study Guide
Hard Disk Management
Windows Server 2003 Active Directory and Network Infrastructure
The Security and Maintenance of Messages in Outlook Express
Planning a Backup and Restoration of Files for Disaster Recovery
WSH to Master Your Computer
Script to Print a Directory File List
Disable Long Filenames to Improve Window's Performance
Disable Kernal Paging to Speed Up Windows
Script to Display the Processes Running on a Computer
Script to Identify Your Systems HAL
To Protect Your PC Disable the Windows Scripting Host

TigerDirect
[Site User Agreement]  [Advertise on This site]  [Search This Site]  [Contact Form]
Copyright©2001-2007 Bucaro TecHelp P.O.Box 18952 Fountain Hills, AZ 85269