1. You may have noticed things look a little different around here - we've switched to a new platform (XenForo) and have some new forum styles and features. This how-to guide will help you find your way around. If you find anything that looks strange, post it in this thread.

File name too long for destination folder

Discussion in 'Windows OS and Software' started by PlasmaShock, Dec 14, 2009.

Thread Status:
Not open for further replies.
  1. PlasmaShock

    PlasmaShock Notebook Consultant

    Joined:
    Apr 26, 2009
    Messages:
    129
    Likes Received:
    0
    Trophy Points:
    30
    All I'm trying to do is move 5 files that don't even have long names to another folder. But no, vista has to up again and not let me move the files because the "file name is too long."

    How do you fix this without having to use command prompt? I have many, many folders to change and copy and I don't want to have to spend hours trying to remake folders, etc.
     
  2. davepermen

    davepermen Notebook Nobel Laureate

    Joined:
    May 16, 2008
    Messages:
    7,791
    Likes Received:
    0
    Trophy Points:
    205
    Location:
    Augst, Switzerland
    move them to c:? that should work. if not, the error message is actually false in that case.
     
  3. PlasmaShock

    PlasmaShock Notebook Consultant

    Joined:
    Apr 26, 2009
    Messages:
    129
    Likes Received:
    0
    Trophy Points:
    30
    They are already on c:

    So how do I fix that? It won't let me copy or even move the files :confused:
     
  4. davepermen

    davepermen Notebook Nobel Laureate

    Joined:
    May 16, 2008
    Messages:
    7,791
    Likes Received:
    0
    Trophy Points:
    205
    Location:
    Augst, Switzerland
    hm.. no clue right now :(

    i guess (just guess) it's a) a permission problem, or b) a file-still-in-use problem.

    you tried rebooting and then moving?

    you move it around on c: or to another disk?
     
  5. Hep!

    Hep! sees beauty in everything

    Joined:
    Nov 7, 2006
    Messages:
    5,921
    Likes Received:
    0
    Trophy Points:
    205
    Location:
    New Jersey
    It's not just file name, it's also path name. If the file + path is too long, you will get this message.

    There's also the possibility of a bad (disallowed) character being in the filename, for instance if the files are shared with a *nix based system.

    What's the full location of the files (both original and where you're moving to)?

    The limit in Vista is still 260 characters total. I forget if that includes slashes and drive letters, but it probably does.
     
  6. PlasmaShock

    PlasmaShock Notebook Consultant

    Joined:
    Apr 26, 2009
    Messages:
    129
    Likes Received:
    0
    Trophy Points:
    30
    I don't have any folders or file names that are >80 characters.

    For the location, they are in the same folder, but I created new folders with different names and I'm lining up the windows side by side so I can move them to the corresponding folder quicker.
     
  7. davepermen

    davepermen Notebook Nobel Laureate

    Joined:
    May 16, 2008
    Messages:
    7,791
    Likes Received:
    0
    Trophy Points:
    205
    Location:
    Augst, Switzerland
    i guess a print screen of those two windows side by side could give some insight.. if you want to post it.
     
  8. PlasmaShock

    PlasmaShock Notebook Consultant

    Joined:
    Apr 26, 2009
    Messages:
    129
    Likes Received:
    0
    Trophy Points:
    30
    There's private file names in there sorry. But the fact is why is windows having a problem with copying files to the same folder?

    I bet macs don't have this problem.
     
  9. davepermen

    davepermen Notebook Nobel Laureate

    Joined:
    May 16, 2008
    Messages:
    7,791
    Likes Received:
    0
    Trophy Points:
    205
    Location:
    Augst, Switzerland
    i bet they can (or just delete the file if something's weird about the copying.. they do that over network, at least :))

    but it's really hard to debug.. i just know you shouldn't have files on c:\ directly anyways, only in your user folders (documents, pictures, videos, music..). there, the rights are all fine..
     
  10. PlasmaShock

    PlasmaShock Notebook Consultant

    Joined:
    Apr 26, 2009
    Messages:
    129
    Likes Received:
    0
    Trophy Points:
    30
    I shortened the folder names and the files themselves don't have problems anymore.

    It seems that if I have long folder names, I can only have short file names. And If I have long file names, I can only have short folder names. I really hope windows does something to try and solve this restriction.

    I need both descriptive folder AND file names to be happy :(
     
  11. davepermen

    davepermen Notebook Nobel Laureate

    Joined:
    May 16, 2008
    Messages:
    7,791
    Likes Received:
    0
    Trophy Points:
    205
    Location:
    Augst, Switzerland
    as hep stated: the whole path of the file can not be longer than 260 characters. this can't be changed for compatibility reasons. that number got compiled into EVERY application existing out there, in every version. apps would crash when they get a longer path name.

    and it looks like your path + filename is too long

    like c:\downloads\somefunkydownloadthathasatoolongname\withsubfoldersyoucantcount\etcblabla\MYFILE.EXT

    or something.

    that's what would have been quickly solved when looking at a printscreen, obviously.
     
  12. swarmer

    swarmer beep beep

    Joined:
    Apr 26, 2007
    Messages:
    5,234
    Likes Received:
    0
    Trophy Points:
    205
    Yup. And it's not a Vista thing either... Windows has been like that forever.
     
  13. davepermen

    davepermen Notebook Nobel Laureate

    Joined:
    May 16, 2008
    Messages:
    7,791
    Likes Received:
    0
    Trophy Points:
    205
    Location:
    Augst, Switzerland
    was the limit for the 8.3 filenames, too? i don't remember that anymore :)

    actually, if google is right, it's actually fixed long ago. but due to the apps not fixing it, it doesn't matter.

     
  14. swarmer

    swarmer beep beep

    Joined:
    Apr 26, 2007
    Messages:
    5,234
    Likes Received:
    0
    Trophy Points:
    205
    lol i don't know, I just meant, don't go back to XP thinking it'll fix the problem.
     
  15. davepermen

    davepermen Notebook Nobel Laureate

    Joined:
    May 16, 2008
    Messages:
    7,791
    Likes Received:
    0
    Trophy Points:
    205
    Location:
    Augst, Switzerland
    yeah. it's most likely one of those things that won't ever change for backwards compatibility.

    it would have been a great moment to change it for the 64bit apis, and fix it there (with a wrapper for the 32bit apis that handle it, similar how the 8.3 file wrappers existed back in the 16bit to 32bit days).

    but now it's too late.. :) they won't change it ever, i guess.
     
  16. Shyster1

    Shyster1 Lazy as the Day is Long

    Joined:
    Jul 7, 2006
    Messages:
    8,179
    Likes Received:
    0
    Trophy Points:
    205
    Location:
    The SSR of NYC
    Are you moving around files that are stored in one of the special folders that Vista comes with, such as the Documents folder or the Pictures folder?
     
  17. olyteddy

    olyteddy Notebook Deity

    Joined:
    May 27, 2004
    Messages:
    1,369
    Likes Received:
    0
    Trophy Points:
    55
    Good point, because the path to those folders is already pretty long. 'C:\Documents and Settings\Owner\My Documents' is the usual start of that path
     
  18. Drjones

    Drjones Notebook Consultant

    Joined:
    Jul 22, 2009
    Messages:
    137
    Likes Received:
    0
    Trophy Points:
    30

    This is correct.

    I JUST had this same issue and you simply have to shorten your file and folder names.

    For example, if you have a bunch of nested folders like "My taxes/2008/california returns/vacation house/CPA/FILE", all of the letters in the path (folder names) count as the "file name."

    I encountered this problem with some classical music I downloaded and whoever created the Mp3s felt the need to put the full artists name AND album title AND of course the track title in each mp3 file name AND folder. :rolleyes:

    So to fix this, don't use as many levels of folders and/or shorten the names of your folders and files. The limit is right around 255 characters, IIRC, and again, that includes the path AND actual file name.
     
  19. davepermen

    davepermen Notebook Nobel Laureate

    Joined:
    May 16, 2008
    Messages:
    7,791
    Likes Received:
    0
    Trophy Points:
    205
    Location:
    Augst, Switzerland
    actually, it's C:\Users\Owner\Documents

    and i guess it is partially because the length issues (and it's nicer to type if you have to :))
     
  20. Hep!

    Hep! sees beauty in everything

    Joined:
    Nov 7, 2006
    Messages:
    5,921
    Likes Received:
    0
    Trophy Points:
    205
    Location:
    New Jersey
    No spaces is nice as well.
     
Thread Status:
Not open for further replies.

Share This Page