General discussion

Locked

Restrict length of long filenames

By gregory.c.fisher ·
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.

This conversation is currently closed to new comments.

2 total posts (Page 1 of 1)  
| Thread display: Collapse - | Expand +

All Comments

Collapse -

by rkuhn In reply to Restrict length of long f ...

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.

Collapse -

by rkuhn In reply to Restrict length of long f ...

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.

Back to Windows Forum
2 total posts (Page 1 of 1)  

Related Discussions

Related Forums