search for files with names longer than 256 characters

Posted on 2011-04-19
Medium Priority
Last Modified: 2012-05-11
Is there an easy way to search a network folder for files with names longer than 256 characters?  


Question by:cja-tech-guy
LVL 15

Accepted Solution

greyknight17 earned 2000 total points
ID: 35429738
There is a program here that may be the easiest of all the methods I found.

If the above doesn't work out, see here for a script to use. You will need to have Perl installed.

Other scripts (DOS/VBS) methods may also be used as mentioned here.

Expert Comment

ID: 35429752
Hi cja,

Are you looking for something that will output a list to a text file?
Are you talking about just the file name being longer than 256 chars (e.g: mydoc12345.txt = 14chars) or do you want to count the entire pathname as well (e.g: \\myserver\myfolder\myfile.txt = 30chars)
This can be done via a vbscript if you let me know your requirements

Author Comment

ID: 35432979
I am going to be copying a large directory from one server to another and I want to make sure the copying doesn't get hung up by a file name that is too long.  The files are being copied froma 2003 server to a 2008 server.  I ahve had this issue in the past where I start teh copy nad it stops with an error that it can't copy file xyz.123, so I have to go back in and find that file and rename or delete it.  Any way to easily check the file name lengths?


Featured Post

NFR key for Veeam Backup for Microsoft Office 365

Veeam is happy to provide a free NFR license (for 1 year, up to 10 users). This license allows for the non‑production use of Veeam Backup for Microsoft Office 365 in your home lab without any feature limitations.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Issue: One Windows 2008 R2 64bit server on the network unable to connect to a buffalo Device (Linkstation) with firmware version 1.56. There are a total of four servers on the network this being one of them. Troubleshooting Steps: Connect via h…
By default the complete memory dump option is disabled in windows . If we want to enable the complete memory dump for a diagnostic purpose, we have a solution for it. here we are using the registry method to enable this.
In this video, we discuss why the need for additional vertical screen space has become more important in recent years, namely, due to the transition in the marketplace of 4x3 computer screens to 16x9 and 16x10 screens (so-called widescreen format). …
This Micro Tutorial will give you a basic overview of Windows DVD Burner through its features and interface. This will be demonstrated using Windows 7 operating system.

864 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question