生成MD5密钥并保存在一个文本文件 [英] Generate MD5 keys and save in a text file
问题描述
我使用它可以从这里得到的MD5命令行实用程序的 HTTP:// WWW .fourmilab.ch / MD5 /
所有我想做的是生成一个文件夹中的所有文件的MD5密钥,并将它们保存在一个文件中。不过,我有困难,甚至单个文件这样做。
我使用的DOS命令是这样的: -
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 -iD:\\门票和放大器;问题\\ MD5 \\ data1.csvD:\\门票和放大器;问题\\ 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 :(
谢谢期待
推荐答案
只需创建一个批处理文件md5.bat
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
运行要遍历目录里面的bat文件。
Run the bat file inside the directory you want to traverse.
这篇关于生成MD5密钥并保存在一个文本文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!