关于Get-fileHash


0
亚历山大-明明 asked 5年 ago

PS> LS | foreach-object name >test.txt
 
如何用一行命令 从test文件中取文件列表,命令Get-FileHash 生成Hash
 
 

1 Answers
0
神经元短路 answered 5年 ago

test里只有文件名,所以运行时要目录相同

get-content test.txt | %{get-filehash -path $_}