雲網

 找回密碼
 立即註冊
搜索
熱搜: 活動 交友 discuz
查看: 462|回復: 0

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

[複製鏈接]

42

主題

54

帖子

378

積分

區版主

Rank: 8Rank: 8

積分
378
發表於 2021-8-21 07:58:16 | 顯示全部樓層 |閱讀模式
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|手機版|小黑屋|雲峰香港

GMT+8, 2021-9-21 07:24 , Processed in 0.046468 second(s), 18 queries .

© 2017 Cloud.hk. All Rights Reserved.

快速回復 返回頂部 返回列表