Delete long files / Filenames ( 260) Characters

Written by Allen White on. Posted in General


You have identified a file name or folder that is over 260 characters, any windows OS /file system will not be able to read this, it will display it BUT you cannot modify it. You could truncate the long filename with a util or do the following.




The fix is quite simple.
Drop to a command prompt and go to the directory that the file is in.
say the file is called” this is a really long file and i cannot delete it as it is over 260 characters etc etc”

Then simply enter Del “this is a ” *.*

As the file is in speech marks and your using the Wildcard (*) it will delete the file.

If you find a directory the is over 260 characters then use the command..

RMDIR “this is a really long folder”*.*

For sub folders that are full use RMDIR /s “this is a really long folder”*.*

Allen White
Allen is a Consultant for ITPS in the North East of England and holds the following accreditations. MCSA, MCSE, MCTS, MCITP, CCA, CCSP, VCP 4,5 and HP ASE, AIS - Network Infrastructure.

ITPS provides strategic IT consultancy, implementation, data centre provision and unified communications, as well as support services and workspace and disaster recovery. If you require a consultation then please contact me via the contacts section or direct on 07931222991, add me on linkedin.

Tags: , ,

Comments (1)

  • cristopher


    Use Long Path Tool, Long Path Tool can simplify and probably end your problems in unlocking, managing and renaming files that appear to have a long filename.


Leave a comment


(c) Please be aware, all information is provided freely, any information used is done so at your risk and Techieshelp will not be held responsible for any issue that may occur.
!-- BuySellAds On-Site Shopping Cart -->