BAT批处理文件来回循环执行(The bat batch file loops back and forth)

当需要BAT批处理文件执行完成后再重复执行,则需要在文件末尾加一行:%0  即可

如echo aa

cls

%0

则会来回输出aa,并清屏

————————

When the bat batch file needs to be executed repeatedly after it is completed, a line needs to be added at the end of the file:% 0   that will do

如echo aa

cls

%0

AA will be output back and forth and the screen will be cleared