I'm trying to create a batch script that runs certutil -hashfile MD5
on each file in a folder and write the output to a file.
I have this code below except it only works on the files in the current folder, I would like it to work such that when a folder is drag-dropped into the batch file .bat it processes that folder only.
for %%a in (*) do certutil -hashfile %%a MD5 >> MD5_log.txt
Also is there a way to get it to output spaces in the log file between iterations of the certutil
output text?