search for files with names longer than 256 characters

Posted on 2011-04-19
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

    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.
    LVL 9

    Expert Comment

    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

    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?


    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Find Ransomware Secrets With All-Source Analysis

    Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

    Setting up a Microsoft WSUS update system is free relatively speaking if you have hard disk space and processor capacity.   However, WSUS can be a blessing and a curse. For example, there is nothing worse than approving updates and they just have…
    One of the features I've come to appreciate about Windows 7 and Windows Server 2008 R2 is the ability to pin applications to the task bar. As useful a feature as I've found this, it does have some quirks.  For example, have you ever tried pinning an…
    The viewer will learn how to back up with the free utility from runtime software, DriveImageXML using Windows 7. Download DriveImageXML from Open folder where it was saved: Start installation by double clicking the install scrip…
    The viewer will learn how to successfully download and install the SARDU utility on Windows 7, without downloading adware.

    737 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

    Need Help in Real-Time?

    Connect with top rated Experts

    20 Experts available now in Live!

    Get 1:1 Help Now