建议将右键 getHash 指令改为如下指令。否则,原指令会弹出两个窗口,如果不手动激活到前台,还会出错。

作者: six7ths创建于 2026年7月13日更新于 2026年7月13日

powershell -Command "$Host.UI.RawUI.BufferSize = New-Object System.Management.Automation.Host.Size(512, 50); Clear-Host; Write-Host 'File: %1' -ForegroundColor Cyan; Write-Host ('-' * 64); 'MD5','SHA1','SHA256','SHA384','SHA512' | ForEach-Object { $h = Get-FileHash '%1' -Algorithm $_; Write-Host ('{0,-8}: ' -f $_.ToString()) -NoNewline; Write-Host $h.Hash -ForegroundColor Yellow }; Write-Host ('-' * 64); Read-Host '按回车键退出'"

内容来源: BluePointLilac/ContextMenuManager