Skip to main content

Windows

Windows 下硬盘测速

用管理员身份打开 PowerShell ,

# 测试 D 盘的速度
winsat disk -drive e

Drive E speed test sample,

E Drive Speed Test Example

Drive C speed test sample,

C Drive Speed Test Example

使用 robocopy 拷贝文件

Reference,

https://learn.microsoft.com/en-us/windows-server/administration/windows-commands/robocopy

Windows 上拷贝文件通常使用 CTRL+C 拷贝, CTRL+V 进行粘贴,这样的操作是不可中断的,如果中间断开则只能重新拷贝。

现介绍一个命令行拷贝命令,robocopy,用法如下,

@rem 拷贝文件夹,
robocopy F:\tutorial E:\tutorial /MIR /LOG:E:\backup.log
@rem 拷贝文件夹,指定错误重试次数为5,
robocopy F:\tutorial E:\tutorial /MIR /LOG:E:\backup.log /R:5

Log 文件可以使用 Git Bash 中进行实时查看,

tail -f backup.log

TODO

https://learn.microsoft.com/en-us/windows-server/administration/windows-commands/xcopy

Sysinternals

https://learn.microsoft.com/en-us/sysinternals/