简体   繁体   English

使用Powershell脚本从损坏的HD复制文件

[英]Copy files from corrupted HD using a powershell script

I am trying to use a script that ignores I/O errors on a HD, to copy whatever is good there into another HD. 我正在尝试使用一个脚本,该脚本忽略HD上的I / O错误,将其中的任何内容复制到另一个HD中。 I found this script here : 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 does just that...but i cant get it to work. 我在这里找到此脚本: http: http://81.165.15.172:1983/blog/2013/06/02/ignoring-device-io-errors-during-copy-with-powershell/comment-page-1/ : http://81.165.15.172:1983/blog/2013/06/02/ignoring-device-io-errors-during-copy-with-powershell/comment-page-1/ / http://81.165.15.172:1983/blog/2013/06/02/ignoring-device-io-errors-during-copy-with-powershell/comment-page-1/ / http://81.165.15.172:1983/blog/2013/06/02/ignoring-device-io-errors-during-copy-with-powershell/comment-page-1/ /06/02/ http://81.165.15.172:1983/blog/2013/06/02/ignoring-device-io-errors-during-copy-with-powershell/comment-page-1/ / 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 )就是这样做的...但是我无法使它工作。

I am trying with command : 我正在尝试使用命令:

.\Force-Copy.ps1 -SourceFilePath "I:\Downloads\" -DestinationFilePath "H:\Downloads" -MaxRetries 6

but it gives me this weird error: 但这给了我这个奇怪的错误:

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

Anyone knows how to use this in win-8 64-bit ? 有谁知道如何在Win-8 64位中使用它? -Thanks -谢谢

So, it's not a PowerShell solution, but for getting whatever you can off a dying drive I recommend using Roadkil's Unstoppable Copier. 因此,这不是PowerShell解决方案,但是为了获得可以从即将死机的驱动器中获得的一切,我建议使用Roadkil的Unstoppable Copier。 You can download it from the author at: 您可以从以下位置从作者那里下载它:

http://www.roadkil.net/program.php/P29/Unstoppable%20Copier http://www.roadkil.net/program.php/P29/Unstoppable%20复印机

I have had good success with that one. 我在那件事上取得了成功。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 使用Powershell将文件从一台笔记本电脑复制到另一台笔记本电脑 - copy files from one laptop to another using powershell 使用 CMD 或 Powershell 从以特定名称开头的文件夹中复制文件 - Copy Files from Folders That Start with a Particular Name Using CMD or Powershell python搜索高清文件并复制到usb - python search for files on hd and copy to usb 使用Powershell复制文件而不重新创建子目录 - Copy files without recreating subdirectories using Powershell 使用 powershell 从文件夹中复制特定文件 - Copy specific files from a folder with powershell 使用PowerShell将前N个文件从源目录复制到“序列化”目标目录 - Copy first N files from source directory to “serialized” destination directory using powershell 使用Windows批处理脚本复制最新的2个文件 - Copy latest 2 files using Windows batch script 从文本文件复制文件的批处理脚本 - Batch Script to copy files from a Text file 将文件从一个文件夹复制到另一个文件夹,然后使用当前日期/时间重命名,并使用PowerShell或Python脚本重命名新文件 - Copy file from one folder to another and then rename using current date/time and new file ext using PowerShell or Python script 在PowerShell中递归地将一组文件从一个目录复制到另一个目录 - Recursively copy a set of files from one directory to another in PowerShell
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM