Generate MD5 keys and save in a text file

倖福魔咒の 提交于 2019-11-30 21:09:18

问题


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

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!