Jan 10

bat几种循环

BAT&VBS
例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


例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


百度搜索  Google搜索  YaHoo搜索
tags:批处理  BAT  循环  

to "bat几种循环"

  • 相关文章:
  • 分秒必争简单批处理工具  (2007-1-9 23:14:19)

    Leave a Reply