Simply put I am trying to take a hash of all of my files in a given directory. I am doing this by calling CertUtil and running:
for %F in (L:\TestDirectory\*)
do (certutil -hashfile "%F" MD5&echo.) >> L:\certutilOutput.txt
This works well, but only for the current directory as it does not go into my next subfolder: "L:\TestDirectory\NetFolder\ which contains another set of files. I would like this to be able to go down several layers.
I feel like I am missing something very simple, any help is appreciated.
To base this on the original code and put it in the full solution that @dave_thompson_085 referenced, save the following as a bat file: