windows下批量生成文件夹内所有文件md5

 

md5批量生成批处理脚本,无需安装任何软件,直接调用系统文件进行生成,基于windows命令编写了一个简单批量生成md5值的脚本。

 

使用说明:

新建文本文档,命名为get_md5.bat,直接将代码复制,保存到get_md5.bat文件中,将get_md5.bat文件复制到需要批量生成md5的文件夹内,双击运行后会在当前目录生成一个MD5.txt的文件,文件内容即为当前文件夹内所有文件md5值。

title md5批量生成脚本-by miles
setlocal enabledelayedexpansion
%~d0
cd %~dp0
if exist 1234.txt del 1234.txt
for /R %%s in (.,*) do (
echo %%s
) >>1234.txt
if exist md5.txt del md5.txt
for /f "skip=1" %%a in (1234.txt) do certutil -hashfile %%a MD5>>md5.txt
 

 

来源:https://blog.csdn.net/weixin_30564785/article/details/95526468

 

windows下单个文件查看md5

windows+R, 输入cmd调出命令行对话框;

命令行输入certutil -hashfile 文件绝对路径 md5

posted on 2020-01-02 10:03  BPSO_mynotes  阅读(7610)  评论(0编辑  收藏  举报

导航