I am trying to calculate the sha1 hash for some files from the% system% \ drivers \ using C # directory. I know the files are in the exact place, but when I use
FILE.Exists("c:\\Windows\\System32\\Drivers\\1394ohci.sys")
it always reconfigures false.
C:\Users\administrator>dir c:\Windows\System32\drivers\1394ohci.sys Volume in drive C has no label. Volume Serial Number is 5A4F-1E60 Directory of c:\Windows\System32\drivers 11/21/2010 08:53 AM 229,888 1394ohci.sys 1 File(s) 229,888 bytes 0 Dir(s) 19,521,245,184 bytes free C:\Users\administrator>fciv -sha1 c:\Windows\system32\drivers\1394ohci.sys
I even tried fciv.exe in a file and it also generated the same result. I tried running the command as an administrator, but that did not help.
I did a lot of web searches, but nothing worked. Please help and let me know how to fix this problem.
Appreciate your help. Thanks,
source share