Midl CustomBuild _SelectedFiles;$(FlexDependsOn) %(Filename).flex.cpp true start /B /WAIT /D "%(RootDir)%(Directory)" win_flex.exe [AllOptions] [AdditionalOptions] "%(Filename)%(Extension)" exit /b %errorlevel% %(RootDir)%(Directory)%(OutputFile); Process "%(Filename)%(Extension)" flex file