SETLOCAL

call call_vcvars.cmd

set "_=%CD%"
cd ..
for /F %%1 in ('dir *.exe /B /S /A:-D') do (mt.exe -manifest "%%1.manifest" -outputresource:"%%1";1)
for /F %%1 in ('dir *.dll /B /S /A:-D') do (mt.exe -manifest "%%1.manifest" -outputresource:"%%1";2)
cd %_%

ENDLOCAL

pause
@echo off
SETLOCAL

call call_vcvars.cmd

set "_=%CD%"
cd ..
for /F "delims=" %%1 in ('dir *.exe /B /S /A:-D') do (echo "%%1" && mt.exe -nologo -manifest "%%1.manifest" -outputresource:"%%1";1)
for /F "delims=" %%1 in ('dir *.dll /B /S /A:-D') do (echo "%%1" && mt.exe -nologo -manifest "%%1.manifest" -outputresource:"%%1";2)
cd %_%

ENDLOCAL

Embed manifests in all files
Embed manifests in all files
