I have a script which changes the console screen height and width periodically with the mode con command. I'd like to reset it back to the defaults on exit /b. I can use this:
Code: Select all
mode con: cols=120 lines=30
I can use powershell:
Code: Select all
powershell -command "&{$w=(get-host).ui.rawui;$w.buffersize=@{width=120;height=9001};$w.windowsize=@{width=120;height=30};}"
[Win 10 Pro]