File name too long for destination folder?


  1. Posts : 89
    Windows 7 Ultimate x64
       #1

    File name too long for destination folder?


    Backing up an entire SSD to large HDD using a copy command. I received the following message indicating that 50,000 files are too long.

    Can anyone explain this situation and what I must do different?
    Attached Thumbnails Attached Thumbnails File name too long for destination folder?-capture.jpg  
      My Computer


  2. whs
    Posts : 26,210
    Vista, Windows7, Mint Mate, Zorin, Windows 8
       #2

    Filenames can be up to 255 characters and total pathlength should not exeed 260 characters.

    http://msdn.microsoft.com/en-us/library/aa365247.aspx#maxpath
      My Computer


  3. Posts : 89
    Windows 7 Ultimate x64
    Thread Starter
       #3

    I think I asked the wrong question. The better question is: How can I identify which files/folder paths are too long in order the change them. 50K is a lot of files.
      My Computer


  4. whs
    Posts : 26,210
    Vista, Windows7, Mint Mate, Zorin, Windows 8
       #4

    I would just make a dummy move of those files to another device. Then those that are left over are the ones you have to change.
      My Computer


  5. Posts : 17
    Microsoft Windows 7 Home Premium 64-bit 7601 Multiprocessor Free Service Pack 1
       #5

    If all fails.
    Use TeraCopy: It lists which files were copied, which were interrupted.
    Downloads - Code Sector
      My Computer


  6. Posts : 5,092
    Windows 7 32 bit
       #6

    Here's a utility that searches a folder tree for filenames longer than what you enter in the input dialog:
    TLPD / Discussion / Open Discussion:Update for Unicode?

    You need to get free scripting language package AutoIt3 to run and/or compile it.
    I think there's a utility that actually fixes as well as finds these files. But I don't think it's free. I don't remember the name of it off hand.

    Edit: I modified the program in this sourceforge project to also use unc paths(those starting with "\\machinename") so that it can deal with very long paths(I forget what the max is for those but I believe it's several thousand characters.)

    Edit2: If you want to use TLPD as is then you don't need to get AutoIt3. If you want to compile the modified source code I recommend downloading the full package from here

    Edit3: rereading my source the max UNC should be 32767 or 16 bit signed max
      My Computer


  7. Posts : 89
    Windows 7 Ultimate x64
    Thread Starter
       #7

    Thanks to all. I will try some of these suggestions. After doing some cursory checking, I discovered many of these files were "temp" files that have out-lived their usefulness, and many Adobe "Presets" that these several applications auto generate, in which I have no control over.

    I looked at a few and found that some of the Adobe preset files have 20-30 nodes in the DSN. No wonder they got flagged as too long.

    I'll see if I can use some of your recommendations. THANKS!!
      My Computer


 

  Related Discussions
Our Sites
Site Links
About Us
Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd
All times are GMT -5. The time now is 23:02.
Find Us