搜索 | 用户支持

防范以用户支持为名的诈骗。我们绝对不会要求您拨打电话或发送短信,及提供任何个人信息。请使用“举报滥用”选项报告涉及违规的行为。

详细了解

Copy Profile fails "Can't create file/folder"

  • 4 个回答
  • 1 人有此问题
  • 3 次查看
  • 最后回复者为 Matt

more options

I need to copy an entire profile to another PC.

Copy the profile dir always fails with multiple "Can't create file/folder" errors.

I have used a file manager, XCopy with "continue if errors" switch and restoring from a system backup.

The restore appears to be OK, it writes all the files it backed up (backups don't show errors), but the copy still fails in about the same place (about 1/2 way through).

Looking at the folders/files in the profile, there are some zero length folders and files. Is this a problem?

The disk are not full (lots of room!) and chkdsk shows no errors.

Any ideas?

Richard

I need to copy an entire profile to another PC. Copy the profile dir always fails with multiple "Can't create file/folder" errors. I have used a file manager, XCopy with "continue if errors" switch and restoring from a system backup. The restore appears to be OK, it writes all the files it backed up (backups don't show errors), but the copy still fails in about the same place (about 1/2 way through). Looking at the folders/files in the profile, there are some zero length folders and files. Is this a problem? The disk are not full (lots of room!) and chkdsk shows no errors. Any ideas? Richard

所有回复 (4)

more options

Could it be you have hit the 255 character limit on path+File name that windows imposes and most people are unaware of?

I have heard of this particularly with the mosmsg folder contents (which are not used for anything but windows search BTW) But just going to a new device where your user name goes from being "owner" to "RichardJonahWilliamsIII" can push what was previously hovering on the limit to over it.

more options

Matt said

Could it be you have hit the 255 character limit on path+File name that windows imposes and most people are unaware of?

Matt, thanks for the quick reply.

I did notice some very long names, but I am copying to a drive on the same machine before transferring it.

Also, the backup software did not complain, but the problem persists.

Richard

more options

Update:

I have resolved this issue by using a backup created on the old machine and then restored to the new machine. Since the backup restore the full tree I did have to move the files to the correct folder which appears to have been successful (no error messages and all data are appears to be intact).

I really have no idea what the real problem is but I'm not convinced it's "file name too long" as the files were written by Thunderbird on the drive in the first place.

Richard

more options

Thunderbird can create files with a path longer than Windows explorer can copy. I have seen a number of instances (usually in the windows search folders with mozeml files) where windows can not create a copy of the folder tree Thunderbird creates.

I assume Thunderbird is using the updated widows APIs that allow more than 255 character path/file names. See here for a discussion of the lifting of the windows limit. https://winaero.com/blog/how-to-enable-ntfs-long-paths-in-windows-10/