Windows XP Windows 7 Windows 2003 Windows Vista Windows 綜合教學 Linux 系統教學
Windows 10 Windows 8 Windows 2008 Windows NT Windows Server 電腦軟體教學

Windows 7 內建 Robocopy 多執行緒複製 大幅加速檔案傳輸

編輯:Windows 7 系統介紹

Windows 內建複製功能速度不理想,許多人改用 FastCopy、TeraCopy。其實 Win7 內建 Robocopy (Robust File Copy) 自 Vista/Win7 起支援多執行緒,速度極快,並支援斷點續傳、定時複製、鏡像備份、保留 ACL/時間戳記等進階功能。

基本用法

複製光碟 F:\ 所有檔案到 E:\CD:

Robocopy /s F:\ E:\CD

即使中途取出光碟,Robocopy 會等待重新插入後繼續。

進階參數範例

Robocopy 來源 目的地 /E /MT:50 /LOG:copy.log
  • /E:包含子目錄 (含空目錄)
  • /MT:50:使用 50 執行緒 (預設 8,最大 128)
  • /LOG:記錄輸出至檔案

更多選項請執行 robocopy /? 查詢。

實測數據

  • 單一 878MB 檔案,120 執行緒,耗時 35 秒。
  • 324 個 1-2MB 小檔 (總 549MB),執行緒數增加呈線性加速,歸一化曲線顯示最佳執行緒數約 50-80。

建議用 PowerShell 腳本測試不同執行緒數找出最佳值。Robocopy 還支援區域網路複製、定時作業 (避開尖峰時段),功能極為強大。

Copyright © Windows教程網 All Rights Reserved