我试图使用一个忽略HD上的I/O错误的脚本,将好的东西复制到另一个HD中。我在这里找到了一个脚本:http://81.165.15.172:1983/blog/2013/06/02/ignoring-device-io-errors-during-copy-with-powershell/comment-page-1/ (https://raw.github.com/DavorJ/PS-ForceCopy/master/Force-Copy.ps1),它只做that...but,我无法让它工作。
我试着指挥:
.\Force-Copy.ps1 -SourceFilePath "I:\Downloads\" -DestinationFilePath "H:\Downloads" -MaxRetries 6但它给了我一个奇怪的错误:
F:\SSDU\Desktop\Force-Copy.ps1 : Cannot validate argument on parameter 'SourceFilePath'. The "Test-Path -LiteralPath $_ -Type Leaf" validation script for the argument with value "I:\Downloads\" did not return true. Determine why the validation script failed and then try the command again.
At line:1 char:34
+ .\Force-Copy.ps1 -SourceFilePath "I:\Downloads\" -DestinationFilePath
"H:\Downlo ...
+ ~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidData: (:) [Force-Copy.ps1], ParameterBind
ingValidationException
+ FullyQualifiedErrorId : ParameterArgumentValidationError,Force-Copy.ps1有人知道如何在win-8 64位?-Thanks中使用这一技术。
发布于 2014-08-14 22:24:17
所以,这不是一个PowerShell解决方案,但为了获得任何你可以从垂死的驱动器,我建议使用Roadkil的不可阻挡的复印机。您可以从作者那里下载它:
http://www.roadkil.net/program.php/P29/Unstoppable%20Copier
我在那件事上取得了很好的成功。
https://stackoverflow.com/questions/25318440
复制相似问题