Code: Select all
c:\test\hallo.doc 1234ab
c:\projekt\okt\foo\bar\x.xls sddgmv
Gibt es dazu eine Lösung?
Peter
Moderators: Hacker, Stefan2, white
Code: Select all
c:\test\hallo.doc 1234ab
c:\projekt\okt\foo\bar\x.xls sddgmv
Statt:Peter wrote: 2019-10-30, 08:19 UTC
-Funktion MD5 schreiben keine vollen Pfade.
Gibt es dazu eine Lösung?
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