List All Assemblies PE Flags

May 21, 2013

The following batch script lists all assemblies with their PE bitness flag using CorFlags.exe. @ECHO off SETLOCAL ENABLEDELAYEDEXPANSION ECHO Flag Assembly FOR /r %%i IN (*.dll,*.exe) DO ( SET RESPE32= FOR /F "delims=" %%a IN ('corflags "%%i" ^| FINDSTR "PE32"') DO ( SET RESPE32=%%a   ) SET RES32BITREQ=Unknown FOR /F "delims=" %%a IN ('corflags "%%i" ^| FINDSTR "32BITREQ"') DO ( SET RES32BITREQ=%%a IF "!RES32BITREQ!" == "32BITREQ :...
no comments