Discussion Locked

Restrict length of long filenames

0 helpful
2 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.
I am trying to restrict the lenght of long filenames in Windows? 255 characters is to much and when trying to migrate between disk sometimes these long names cause crashes. I suspect it must be a registry entry but am not sure.

2 replies

by rkuhn040172

To remove the ability to create long filenames on FAT, use the Registry Editor (REGEDT32.EXE).

Under the HKEY_LOCAL_MACHINE Key, use the following path:
\SYSTEM\CurrentControlSet\Control\FileSystem\Win31FileSystem

Change the entry to 1 and long filename support on FAT will be disabled when you reboot your machine. To re-enable it, change the entry back to 0.

by rkuhn040172

Windows Server 2003 and Windows XP

To disable the 8.3 name creation on all NTFS partitions, type fsutil.exe behavior set disable8dot3 1 at a command prompt, and then press ENTER.

Windows 2000 and Windows NT

To disable the 8.3 name creation on all NTFS partitions, use the following steps:

1. Start Regedt32.exe and locate the following registry key:
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\FileSystem
2. Select the NtfsDisable8dot3NameCreation entry.

NOTE: By default, the value for this entry is set to 0.
3. On the Edit menu, click DWORD. Type a value of 1 in the Data field.
4. Click OK and then quit Regedt32.
5. Quit Windows NT and turn off your computer.
6. Restart your computer and Windows NT.

NOTE: The change to the NtfsDisable8dot3NameCreation registry entry affects only files, folders, and profiles that are created after the change. Files that already exist are not affected.

This discussion is closed to new replies.