none
file copy error message not sufficient + file name too long will not copy

    Question

  • I'm currently in the process of copying files back from the cloud in the exact same location where I had them before and now it says that the file name is too long and prompts to see whether I want to skip the file or not. The error message given does not give the full file name or the path so it is impossible to see which files were copied successfully or not. This never happened with XP! Then afterwards I found that some of the files with long names did copy successfully whereas others didn't. I find this to be a very user unfriendly process and I'm totally confused! These are critical files and I'm sure I haven't exceeded 260 characters or whatever. This is soOoO frustrating!!

    C

    Wednesday, June 20, 2012 2:55 PM

Answers

  • Hi ,

    There is a limit of filename length within Windows Explorer. In the Windows API (with some exceptions discussed in the following paragraphs), the maximum length for a path is MAX_PATH, which is defined as 260 characters.

    The shell and the file system have different requirements. It is possible to create a path with the Windows API that the shell user interface is not able to interpret properly.

    This means that your long filename can only be handled at the command prompt level and you cannot drag and drop an illegal length filename within Windows Explorer.

    Please simplify your folders and titles.

    More information, please check the part of Maximum Path Length Limitation in the link below.

    http://msdn.microsoft.com/en-us/library/windows/desktop/aa365247(v=vs.85).aspx


    Tracy Cai

    TechNet Community Support

    • Marked as answer by Sabrina Shen Friday, June 29, 2012 9:07 AM
    Monday, June 25, 2012 7:26 AM
    Moderator

All replies

  • Hi ,

    There is a limit of filename length within Windows Explorer. In the Windows API (with some exceptions discussed in the following paragraphs), the maximum length for a path is MAX_PATH, which is defined as 260 characters.

    The shell and the file system have different requirements. It is possible to create a path with the Windows API that the shell user interface is not able to interpret properly.

    This means that your long filename can only be handled at the command prompt level and you cannot drag and drop an illegal length filename within Windows Explorer.

    Please simplify your folders and titles.

    More information, please check the part of Maximum Path Length Limitation in the link below.

    http://msdn.microsoft.com/en-us/library/windows/desktop/aa365247(v=vs.85).aspx


    Tracy Cai

    TechNet Community Support

    • Marked as answer by Sabrina Shen Friday, June 29, 2012 9:07 AM
    Monday, June 25, 2012 7:26 AM
    Moderator
  • I confirmed that once the file path exceeds the 260 character limit you cannot copy files even using DOS commands like XCOPY.  Specifically used the following command:

    xcopy c:\a\*.* c:\b\*.* /e /y >c:\a\copynotes.txt

    The directory structure will copy, but once the file path exceeds the limit, the files and sub directories don't copy.  No errors occur to alert you to the problem that files are not being copied.

    Monday, August 26, 2013 6:10 PM