Problem copying files. "Destination path is too long." What can I do?

I need to copy files from one external hard drive to another. Unfortunately, I keep getting the error message that the file name is too long for the destination folder (see attached image). I've already tried these solutions:

  • The Registry Editor settings for long paths are enabled (long Paths Enabled set to 1)
  • The hard drive on which I need to save the files is formatted.
  • Open the group options, as you can apparently change something there. However, I couldn't get in there because it apparently doesn't work with the Home version (Windows 11).

What I find odd is that the problem seems to only affect one hard drive, even though, based on my research, the issue should actually lie with Windows itself. The paths on the other hard drive are so long, and I can easily open the nested folders and create new ones. So I find it odd that this doesn't work on the other hard drive (which is much newer).

I don't really want to change the folder structure because, on the one hand, it would be very time-consuming and, on the other hand, the structure would no longer make sense.

Unfortunately, I'm not really familiar with IT stuff… Does anyone have any ideas what else I could do myself? Or is this a job for a specialist?

(2 votes)
Loading...

Similar Posts

Subscribe
Notify of
15 Answers
Oldest
Newest Most Voted
Inline Feedbacks
View all comments
Xandros0506
2 months ago

What can you do?

It’s already in the error message.

The settings in the registration editor for long paths enabled

The setting refers to the actual file name incl. Ending.
In the error message, however, the file name (including the complete path!) is too long. Each character from the drive letter is counted, each included special character is stored by more than one standard character…. (Under Windows, a space in the path or file name is already three characters!) And if the entire name of the path with all characters, filenames and extension exceeds the limit supported by the file system on the storage medium, you run against the wall when writing and in the worst case, you do not even have the option to read the file again.

So cut directory names appropriately – especially if the directory structure goes very deep and many nested subdirectories are used, on special characters where it is possible to dispense with file names not in whole sentences.

notting
2 months ago

This is also true for historical reasons or, if necessary, Embedded systems. Lis https://learn.microsoft.com/de-de/windows/win32/fileio/maximum-file-path-limitation or this can be deactivated. Logically with the disadvantage that certain systems cannot read the files.

Notification

minimax11
2 months ago

This refers to the NAMEN file. BENENNE the file around. and the problem is eaten.

norbertk62
2 months ago

Check in the Explorer (right click on the drive and properties) with which file system the disk was formatted. NTFS is quite flexible, but the FAT layers can have limitations. Ext(x) not considered.

norbertk62
2 months ago
Reply to  feibien

Now you go deep.

Very rough

  • each plate has a smallest allocation unit – these are 512 bytes. That’s the hardware.
  • Because there are so many, they summarize the operating system (Windows / Linux) in the assignment units – these are the clusters. A cluster is always completely read or written – no fraction of it
  • means: if you have a lot of small files, you also need a lot of clusters. Few large files = less, but larger clusters
  • The directory is in principle a table in which the properties of the file (name, size, position, etc) are stored. With a few files you bring the table into a cluster, with many files you may need. more.

Means: I don’t see the problem because the directories / tables can become bigger when growing.

Nevertheless, each file system can have restrictions on the file (and directory) name – you can googeln.

Quite doof: it could (I don’t know) make a problem if the file name is stored as UTF instead of as ANSI, because then depending on the letter several bytes are used per character.

Just a little background.

Go to the editor/notepad. In an Explorer, you go to one of the files you want to copy and click on it. You copy the file name from the address field to the editor.

Then look at the problematic panel and do the same with a new file – also in the editor. Then compare.

My guess: you want to copy a file tree from the source disk to a sub-file tree of the target disk. However, it must be borne in mind that the paths are attached to each other.

Jonathan298
2 months ago

Shorten path

Jonathan298
2 months ago
Reply to  feibien

if you know better

Jonathan298
2 months ago

sry cheff