批处理,一件修改JPG文件名字为其MD5值

@echo off
setlocal enabledelayedexpansion
for /f "delims=" %%a in ('dir /b *.jpg') do (
    for /f "delims=" %%b in ('md5.exe -n "%%a"') do (
        ren "%%a" "%%b.jpg"
    )
)
pause

md5.exe放在同一目录下

posted @ 2019-04-16 15:52  DDWK  阅读(481)  评论(0编辑  收藏  举报