On Friday, 8 June 2018 at 02:44:13 UTC, Mike Parker wrote: >...you can get it with this: > > dmd -m64 -L/SUBSYSTEM:console -L/ENTRY:WinMainCRTStartup foo.d Thank You! It works with LDC -m64 as well. And now that I repaired my VCRedist2015 the bat file test (my second code example) is working too.