Find the long file names on your drives
Tags: Resources
Have you ever wondered whether your drive contains files with very long file names? I experienced a problem with my Home Server backup, where some of the files turned out to have very long file names (close to 255 characters). When files with that long file names are copied to other directories with perhaps a long folder name, the total characters in the path and file name exceed 255 characters, and the copy operation fail. I therefore needed a small application to reveal those file names.
The result is FindVeryLongFileNames.exe which by default scans the specified drive and path for file names longer than 200 characters. It also scans all subfolders. For example;
FindVeryLongfileNames C:\ - will scan your C-drive and all subfolders for long file names
FindVeryLongfileNames \\SERVER\Music - will scan your network share \\SERVER\Music and all subfolders for long file names.
If you want to look for file names with names longer than for example 240 characters, you may specify;
FindVeryLongFileNames \\SERVER\Music 240 - will scan your network share \\SERVER\Music and all subfolders for file names longer than 240 characters
Note that the tool just outputs the results to the console. This means that you can use standard redirect-operation (use >) to redirect the output to a file. for example;
FindVeryLongFileNames \\SERVER\Music >c:\Longfile namesMusic.txt
When FindVeryLongFileNames finishes, you may see the result in the file c:\Longfile namesMusic.txt.
Since the tool outputs the file names on the format xxx - file name, you may sort the file too, with the standard SORT command, such as;
SORT c:\Longfile namesMusic.txt >c:\Longfile namesMusicSORTED.txt
Remember you can add the /REVERSE parameter to the SORT command to reverse the sort order to descending.
You may download the tool here.
Have you ever wondered whether your drive contains files with very long file names? I experienced a problem with my Home Server backup, where some of the files turned out to have very long file names (close to 255 characters). When files with that long file names are copied to other directories with perhaps a long folder name, the total characters in the path and file name exceed 255 characters, and the copy operation fail. I therefore needed a small application to reveal those file names.
The result is FindVeryLongFileNames.exe which by default scans the specified drive and path for file names longer than 200 characters. It also scans all subfolders. For example;
FindVeryLongfileNames C:\ - will scan your C-drive and all subfolders for long file names
FindVeryLongfileNames \\SERVER\Music - will scan your network share \\SERVER\Music and all subfolders for long file names.
If you want to look for file names with names longer than for example 240 characters, you may specify;
FindVeryLongFileNames \\SERVER\Music 240 - will scan your network share \\SERVER\Music and all subfolders for file names longer than 240 characters
Note that the tool just outputs the results to the console. This means that you can use standard redirect-operation (use >) to redirect the output to a file. for example;
FindVeryLongFileNames \\SERVER\Music >c:\Longfile namesMusic.txt
When FindVeryLongFileNames finishes, you may see the result in the file c:\Longfile namesMusic.txt.
Since the tool outputs the file names on the format xxx - file name, you may sort the file too, with the standard SORT command, such as;
SORT c:\Longfile namesMusic.txt >c:\Longfile namesMusicSORTED.txt
Remember you can add the /REVERSE parameter to the SORT command to reverse the sort order to descending.
You may download the tool here.
Comments
Two Useful Tools for Your Productivitry Toolkit: { Link }
Eric
Posted by Eric Mack At 05:43:08 On 09.07.2009 | - Website - |
Posted by GS At 18:27:51 On 04.04.2010 | - Website - |
Posted by JSSEV At 11:33:33 On 09.04.2010 | - Website - |
Thanks for your help.
Posted by Clidash At 14:04:28 On 08.06.2011 | - Website - |
A server here choked on this path (at least I found it with your tool):
223 - d:\disk_d\i\IT-Structure\BONG\LIH\2-Project_Work\1-Process_Landscape\2-Final\LIH_CD_Prozesslandkarte_071107\Projektergebnisse\1_Ist-Analyse\Fondsgeschaft\LIH_Ist-Analyse_Prozesse_Fondsgesch225 - d:\disk_d\i\IT-Structure\BONG\LIH\2-Project_Work\1-Process_Landscape\2-Final\LIH_CD_Prozesslandkarte_071107\Projektergebnisse\1_Ist-Analyse\Fondsgeschaft\LIH_Ist-Analyse_Prozesse_Fondsgesch220 - d:\disk_d\i\IT-Structure\BONG\LIH\2-Project_Work\1-Process_Landscape\2-Final\LIH_CD_Prozesslandkarte_071107\Projektergebnisse\1_Ist-Analyse\Fondsgeschaft\LIH_Ist-Analyse_Prozesse_Fondsgesch221 - d:\disk_d\i\IT-Structure\BONG\LIH\2-Project_Work\1-Process_Landscape\2-Final\LIH_CD_Prozesslandkarte_071107\Projektergebnisse\1_Ist-Analyse\Fondsgeschaft\LIH_Ist-Analyse_Prozesse_Fondsgesch225 - d:\disk_d\i\IT-Structure\BONG\LIH\2-Project_Work\1-Process_Landscape\2-Final\LIH_CD_Prozesslandkarte_071107\Projektergebnisse\1_Ist-Analyse\Fondsgeschaft\LIH_Ist-Analyse_Prozesse_Fondsgesch226 - d:\disk_d\i\IT-Structure\BONG\LIH\2-Project_Work\1-Process_Landscape\2-Final\LIH_CD_Prozesslandkarte_071107\Projektergebnisse\1_Ist-Analyse\Immobilienleasing\LIH_Ist-Analyse_Prozesse_Immobilienleasing_Akquisition_070921_V2.xls
Posted by Michael At 18:47:36 On 07.10.2011 | - Website - |
Posted by AtillaRist At 18:41:33 On 12.03.2012 | - Website - |
I was having problems with the server backup of my WHS 2011 box and at some point I was suspecting that the cause of the problems could be the (very) long filenames of my music collection. As I am a programmer myself, I already was thinking about writing a simple java or C# proggy to scan my folders/files. But why inventing the wheel again? A google search pointed to your blog and yes, you provided me with the solution. Thanks a lot for your neat little program.
Posted by Evert van den Bos At 18:11:52 On 02.05.2013 | - Website - |
Posted by ricktor At 19:09:38 On 30.05.2013 | - Website - |
Posted by FWJ At 17:33:22 On 06.09.2013 | - Website - |
Posted by SteveAD At 16:54:55 On 19.01.2014 | - Website - |
Access is Denied
I am logged in as Admin. Please help
Posted by syed At 23:31:13 On 11.04.2014 | - Website - |
FindVeryLongFileNames C:\ 255 >c:\Longfile longname.txt
It doen't display any thing and file is 0MB. however when I put simply command without any output file, it display on console.
Please help
Posted by syed At 01:46:01 On 15.04.2014 | - Website - |
you are welcome here
long path tool can also be used for sort out this types of problem.
....................
Posted by FGranados At 18:37:25 On 28.09.2014 | - Website - |
Posted by Dale At 23:55:00 On 18.11.2014 | - Website - |
Posted by Kevin15 At 14:57:04 On 13.09.2015 | - Website - |
Posted by joshua42 At 05:24:44 On 25.10.2015 | - Website - |
Posted by rogerson At 12:13:45 On 21.03.2016 | - Website - |
Posted by barryk desteve At 12:44:50 On 22.08.2016 | - Website - |
You can use to solve this problem.
Posted by john raf At 12:45:58 On 28.08.2016 | - Website - |
best solution for your problem.
Posted by stepan raisa At 16:05:46 On 09.10.2016 | - Website - |
best solution for your problem.
Posted by stepan raisa At 16:07:30 On 09.10.2016 | - Website - |
Try it and solved your problem.
I used the long path tool and I solved my error, unlocks problem solution.
Posted by aiden carter At 21:06:19 On 21.10.2016 | - Website - |
For long path file name problem , you can use this useful software `` Long Path Tool ``
thanks
Posted by snizhana At 07:32:51 On 29.12.2016 | - Website - |
Posted by snizhana At 07:32:52 On 29.12.2016 | - Website - |