请选择 进入手机版 | 继续访问电脑版

AI 社区

 找回密码
 立即注册
查看: 6279|回复: 0

複製檔案名稱過長解決方法

[复制链接]

82

主题

18

回帖

496

积分

区板主

Rank: 8Rank: 8

积分
496
发表于 2021-10-19 19:32:08 | 显示全部楼层 |阅读模式
Unable to restore file due to long file name


I was working with a customer who had accidently deleted some files when copying them to a different drive. When trying to restore them using the Previous Versions option, I got a message saying that the source file name was too long. I tried everything, but eventually the steps below worked for me:

Right click on the folder you're trying to restore from shadow copy and chose Previous Versions. Chose a date and click on Open.

Right click on any file or folder within the previous folder and chose Properties. On the General tab copy what's shown in 'location', e.g.: \\localhost\D$\@GMT-2011.09.20-06.00.04\_Data

Open cmd.exe and type in - subst X: \\localhost\D$\@GMT-2011.09.20-06.00.04\_Data

Open PowerShell and use robocopy to copy content of X:  - robocopy Z: D:\Folder\ /E /COPYALL

Check that all files have been copied.

When finished type - subst X: /D in cmd.exe
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

Archiver|手机版|小黑屋|AI 社区

GMT+8, 2023-6-2 10:07 , Processed in 0.022528 second(s), 20 queries .

Copyright © 2021 AI 社区

快速回复 返回顶部 返回列表