联盟域名:www.cn-dos.net 论坛域名:www.cn-dos.net/forum DOS,代表着自由开放与发展,我们努力起来,学习FreeDOS和Linux的自由开放与GNU精神,共同创造和发展美好的自由与GNU GPL世界吧!
@echo off cd.>test.txt for /f "tokens=1* delims=:" %%i in ('findstr /n .* menu.lst') do ( set "var=%%j" call :replace "%%j" ) start test.txt goto :eof :replace set str=%1 set "str=%str:~1,-1%" if /i "%str:~0,8%"=="password" ( for /f "delims=" %%i in (md5.txt) do set "str=%%i" ) >>test.txt echo.%str% goto :eof