certutil -hashfile of a directory
Posted: 10 Oct 2019 09:41
I'm trying to run certutil on a directory to output the results to a file using a wildcard to identify the files.
the directory is c:/temp/mfiles
the file extensions are .fdf
the hashfile are SHA256
I'm familiar with using the certutil for a single file, but I'm not sure how to do it for a directory, I have 250+ files that I need to run this on. I've tried multiple commands and tried using FOR, but I'm not well versed in dos to get the results.
The command I use for a single file is, certutil -hashfile file1.fdf SHA256>filehash256.txt, which returns the result I need, but I don't know how to employ it for the contents of a directory.
I am unable to download other utilities do to IT restrictions on my computer so this has to be done with built in commands.
Thank you
the directory is c:/temp/mfiles
the file extensions are .fdf
the hashfile are SHA256
I'm familiar with using the certutil for a single file, but I'm not sure how to do it for a directory, I have 250+ files that I need to run this on. I've tried multiple commands and tried using FOR, but I'm not well versed in dos to get the results.
The command I use for a single file is, certutil -hashfile file1.fdf SHA256>filehash256.txt, which returns the result I need, but I don't know how to employ it for the contents of a directory.
I am unable to download other utilities do to IT restrictions on my computer so this has to be done with built in commands.
Thank you