Windows 如何在提示窗口中批量删除文本本身

Windows 如何在提示窗口中批量删除文本本身,windows,batch-file,Windows,Batch File,因此,我想在两个回音字符串之间放置一个命令,以便当另一个出现时,它位于顶行,第一个回音文本消失 大概是这样的: echo Stuff that gets deleted when the second print comes choice /C X /T 3 /D X > nul deletepreviousecho echo New Words. 您可以使用cls: echo Stuff that gets deleted when the second print comes pau

因此,我想在两个回音字符串之间放置一个命令,以便当另一个出现时,它位于顶行,第一个回音文本消失

大概是这样的:

echo Stuff that gets deleted when the second print comes
choice /C X /T 3 /D X > nul
deletepreviousecho
echo New Words.
您可以使用cls:

echo Stuff that gets deleted when the second print comes
pause
cls
echo New Words.
哦,暂停打印“按任意键继续…”如果您不想使用:

pause>nul

@user2774738:欢迎来到堆栈溢出!如果你觉得这个答案有帮助,你可以投票表决并/或检查它是否是你问题的正确答案。