Cmd.exe Errors When the Path or File Name Exceeds the Max_Path Setting or 256 Characters


The DELETE or RENAME functions of the Cmd.exe utility may stop functioning correctly if a path or file name exceeds either the max_path length setting or 256 characters on the NTFS file system partitions. On drive X with a subfolder or file name that exceeds the max_path setting or 256 characters, an attempt to delete or rename the file or files may generate an error message, such as "There are no more files" or "File not found."


This problem occurs because Cmd.exe imposes a 256 character limit. NTFS does not have this type of limit on file name length or total path length. The character limit also applies when you use Cmd.exe on FAT partitions.


Microsoft has confirmed that this is a problem in the Microsoft products that are listed at the beginning of this article

Download Long Path Tool 5.1.6 here