Feb 05 2023 11:16 AM
I noticed recently that my BAT files, had started not outputing all the information I was expecting to on the command window that opened (When I double click a BAT file), or the output seemed to display lines from a previous run, with the cursor appearing in the wrong place.
I have eventually tracked this issue down as being caused by the Settings Option "Default terminal application"
Having this option set to either "Let Windows decide" or "Windows Terminal" causes this issue.
Setting this option to "Windows Console Host" fixed this issue and the BAT file output is consistent on each run.
Even the running the most simple BAT file like below
echo *** FIRST LINE ***
echo %cd%
echo *** SECOND LINE ***
REM @echo off
pause
Feb 05 2023 11:40 AM
Feb 11 2023 08:40 AM
Feb 11 2023 08:48 AM
@VinceE I'm on the standard release channel Build 22621.
So it looks like this issue has escaped insider preview and is now in the wild.