cmd只有全局清屏cls
所以有两种方法
[1]只靠批处理
思路:先cls,再用echo输出- @echo off
- set /p a=input:
- :a
- cls
- echo input:%a%
- set /p b=input:
- if "%b%"=="" echo 输入为空!&goto a
复制代码 [2]用第三方工具
你可以用def兄的Cext,下载后运行演示工具,每一个屏幕暂停都看看,有一个删除文本的.- @echo off
- set /p a=input:
- :a
- set /p b=input:
- if "%b%"=="" echo 输入为空!&cext /del 1&goto a
复制代码
|