If you want to scroll the CMD window while a batch file is running, you can alter the Windows width (characters) and depth (screen buffer lines) by issuing a mode command in the batch file:

mode con\[:\] \[cols=c\] \[lines=n\]


<b>con\[:\]</b>   indicates the change is to be made to the current command prompt window.

<b>cols=c</b>   specifies the width, <b>c</b>, in characters.

<b>lines=n</b>  specifies the number of lines, <b>n,</b> in the screen buffer.