@REM https://learn.microsoft.com/en-us/dotnet/framework/tools/ngen-exe-native-image-generator @ECHO Run as admin. @ECHO Queues NGen.exe to precompile all LazyCat EXEs, if they are were expected. @ECHO When queue has run output is in C:\Windows\assembly\NativeImages_v4.0.30319_64\ and C:\Windows\assembly\NativeImages_v4.0.30319_32\ @ECHO The two folders are not accessible with Explorer, but from fex CMD. @ECHO Important: Memory use will be larger, startup and possibly execution will be faster. @ECHO You may need to adjust the path of NGen.exe for version and bitnes, it is not in any environment variable. @ECHO To uninstall change 'install' to 'uninstall'. @ECHO --- @SET LogFile=%Temp%\NGenLazyCat.log @ECHO Started %DateTime% - %Time% >%LogFile% @DIR "%ProgramFiles%\LazyCat\*.exe" /s /b >%Temp%\NGenLazyCatFileList.txt @FOR /f "delims=" %%f in (%Temp%\NGenLazyCatFileList.txt) DO (C:\Windows\Microsoft.NET\Framework\v4.0.30319\ngen.exe install "%%f" /queue) @ECHO. @ECHO. @ECHO Update all images that have become invalid. @ECHO. @ECHO. C:\Windows\Microsoft.NET\Framework\v4.0.30319\ngen.exe update /queue >>%LogFile% @ECHO. @ECHO. @ECHO When doing the next operation, the PC will be busy until finished. C:\Windows\Microsoft.NET\Framework\v4.0.30319\ngen.exe executeQueuedItems >>%LogFile% @ECHO Ended %DateTime% - %Time% >>%LogFile% @hBeep.exe DN