diff options
| author | WindowsAddict | 2024-10-21 22:06:28 +0000 |
|---|---|---|
| committer | WindowsAddict | 2024-10-21 22:06:28 +0000 |
| commit | 6efb5d50fec167b3bf09d0122840c67c74508de8 (patch) | |
| tree | c8242ec4f0f1473e8eefcdd34e37eddf363b37e3 /MAS/Separate-Files-Version/Change_Windows_Edition.cmd | |
| parent | b2831795a480a1bd9e23875576d0bee1a3cac013 (diff) | |
| download | Microsoft-Activation-Scripts-6efb5d50fec167b3bf09d0122840c67c74508de8.zip | |
Suppress error output when screen size is smaller than the cmd window size
Diffstat (limited to 'MAS/Separate-Files-Version/Change_Windows_Edition.cmd')
| -rw-r--r-- | MAS/Separate-Files-Version/Change_Windows_Edition.cmd | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/MAS/Separate-Files-Version/Change_Windows_Edition.cmd b/MAS/Separate-Files-Version/Change_Windows_Edition.cmd index 09aae5e..d5fb7c6 100644 --- a/MAS/Separate-Files-Version/Change_Windows_Edition.cmd +++ b/MAS/Separate-Files-Version/Change_Windows_Edition.cmd @@ -605,7 +605,7 @@ goto dk_done cls
if not defined terminal (
mode con cols=105 lines=32
-%psc% "&{$W=$Host.UI.RawUI.WindowSize;$B=$Host.UI.RawUI.BufferSize;$W.Height=31;$B.Height=200;$Host.UI.RawUI.WindowSize=$W;$Host.UI.RawUI.BufferSize=$B;}"
+%psc% "&{$W=$Host.UI.RawUI.WindowSize;$B=$Host.UI.RawUI.BufferSize;$W.Height=31;$B.Height=200;$Host.UI.RawUI.WindowSize=$W;$Host.UI.RawUI.BufferSize=$B;}" %nul%
)
call :ced_rebootflag
@@ -642,7 +642,7 @@ goto dk_done cls
if not defined terminal (
mode con cols=105 lines=32
-%psc% "&{$W=$Host.UI.RawUI.WindowSize;$B=$Host.UI.RawUI.BufferSize;$W.Height=31;$B.Height=200;$Host.UI.RawUI.WindowSize=$W;$Host.UI.RawUI.BufferSize=$B;}"
+%psc% "&{$W=$Host.UI.RawUI.WindowSize;$B=$Host.UI.RawUI.BufferSize;$W.Height=31;$B.Height=200;$Host.UI.RawUI.WindowSize=$W;$Host.UI.RawUI.BufferSize=$B;}" %nul%
)
set key=
|
