问题
I'm using the MD5 command line utility which can be obtained from here http://www.fourmilab.ch/md5/ All i wish to do is to generate the MD5 keys of all the files in a folder and save them in a single file. However, I'm having difficulty to do so even for a single file. The DOS command that I'm using is this:-
md5 -n -ooutput_test.txt -i"D:\Tickets&Issues\MD5\data1.csv" "D:\Tickets&Issues\MD5\output_test.csv"
But i believe all it does is generate the key for the last file and save it in that file itself. Can anyone please help me out with this? I need to get this sorted in less time :(
Thanks in anticipation
回答1:
Just create a batch file "md5.bat":
@echo off
for /r %%f in (*) do md5.exe %%f >> output.txt
Or if running from the command line:
for /r %f in (*) do md5.exe %f >> output.txt
Run the bat file inside the directory you want to traverse.
来源:https://stackoverflow.com/questions/17228202/generate-md5-keys-and-save-in-a-text-file