Midl CustomBuild _SelectedFiles;$(LolFxCompileDependsOn) @echo off set D=$(IntDir)%(Filename)%(Extension).cpp echo /* This file was autogenerated. DO NOT MODIFY IT. */ > "%D%" echo extern "C" { char const *lolfx_resource_%(Filename) = >> "%D%" setlocal disabledelayedexpansion for /F "tokens=1,* delims=`" %%L in ('type "%(Fullpath)"') do ( set "line=%%L" setlocal enabledelayedexpansion echo "!line:"=\"!\n" >> "%D%" endlocal ) endlocal echo ;} >> "%D%" $(IntDir)%(FileName)%(Extension).cpp %(FileName)%(Extension)