问题
I'm building a batch program integrating fciv, certutil and powershell for compatibility on hashing folders on legacy systems. I ran into a bug where fciv will not hash some files while doing recurse hashings, below is a snippet of the code used.
"%workingDir%fciv.exe" "\\?\%targetDir%" -%hashType% -r
For example, i am scanning C:\Windows\System32\wbem\en-GB , results from FCIV shows that it scanned 67 files, while CertUtil and Powershell methods scanned 166 files. I tried to scan individual files that did not show up in FCIV's scan, below is the command
C:\Users\User1\Desktop\FileFinder\fciv.exe" "C:\Windows\System32\wbem\en-GB\aeinv.mfl" -md5
i was thrown the error below
Command Line: fciv.exe -r C:\windows\system32\wbem\en-GB\aeinv.mfl
c:\windows\system32\wbem\en-gb\aeinv.mfl\*
Error msg : The system cannot find the path specified.
Error code : 3
It seems to think that the file is a folder and throws an error. I can provide more details if needed, thanks in advance!
Edit: Seems that at least 1 other programs out there have the same issue
http://compressme.net/ (CHK Hash Tool)
Edit2: Appearently there isnt a issue if you use a 64bit variant of CHK Hash Tool, i'm guessing it's something related to that but i have no lead
来源:https://stackoverflow.com/questions/62111957/fciv-fails-to-find-some-files-when-hashing-c-drive