Code: Select all
c:\test\hallo.doc 1234ab
c:\projekt\okt\foo\bar\x.xls sddgmv
Gibt es dazu eine Lösung?
Peter
Moderators: white, Hacker, Stefan2
Code: Select all
c:\test\hallo.doc 1234ab
c:\projekt\okt\foo\bar\x.xls sddgmv
Statt:
Code: Select all
#PoSh v4
gi "X:\Y\Z.txt" |ForEach{ $(Get-FileHash $_.FullName -Algorithm MD5) }
Algorithm Hash Path
--------- ---- ----
MD5 9AB519B126E69ED4DC11A728BBB8D10F X:\Y\Z.txt
#Ausgabe formatiert
gi "X:\Y\Z.txt" |ForEach{ $(Get-FileHash $_.FullName -Algorithm MD5)}|ForEach{"{0} *{1}" -f $_.Hash,$_.Path}
9AB519B126E69ED4DC11A728BBB8D10F *X:\Y\Z.txt