`

Bat循环写法

阅读更多
例1 goto
@echo off
:a
echo %date%;%time%
cls
goto :a

例2 %0
@echo off
echo %date%;%time%
cls
%0

【例3 call】
@echo off
set test=:4
:4
cls
echo %date%;%time%
call %test%
呵呵 不行

例3 FOR
zzzevazzz

@echo off
for /L %%i in (0,0,0) do time /t & cls


例4 >
mix0

@echo off
echo %date%;%time%
echo 1.bat>2.bat
2.bat

本文来自CSDN博客,转载请标明出处:http://blog.csdn.net/freexploit/archive/2004/10/15/138368.aspx
分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics