How to clear selected lines in Batch instead of the whole screen?
问题 When we use the pause it shows "Press any key to continue . . .". After pressing any key, the latter text remains, and the remaining text appears below it. If I use cls after pause the whole screen gets cleared. Is there any method to remove only "Press any key to continue . . ." after pressing any key? Also, how do I clear only selected lines instead of clearing the whole screen? 回答1: There are multipe solutions for this problem, but batch doesn't offer a simple one. The main problem of