*******
@echo off
set work_path=./
cd %work_path%
for /R %%s in (*.dll) do (
echo %%~nxs
call dumpbin /headers %%~nxs >> dumpbin.txt
)
*******
@echo off
SETLOCAL ENABLEDELAYEDEXPANSION
set work_path=./
cd %work_path%
for /R %%i in (*.dll) do (
set var=%%i
echo !var!
call dumpbin /headers !var! >> dumpbin.txt
)