
CODE: [Copy to clipboard]@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
| 欢迎光临 中国DOS联盟论坛 (http://cndos.fam.cx/forum/) | Powered by Discuz! 2.5 |