ningbo-seo 发表于 2013-1-27 13:13:52

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
页: [1]
查看完整版本: Bat循环写法