分秒必争

个人技术博客,笔记,杂谈之地

« 分秒必争简单批处理工具用DOS命令改IP »
Jan
10

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


例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


Share
« 分秒必争简单批处理工具用DOS命令改IP »

发表评论:

◎欢迎参与讨论,请在这里发表您的看法、交流您的观点。

日历

Channels

Categories

Comments

Previous

Powered By Z-Blog 1.8 Walle Build 100427  Copyright www.djhui.net. Some Rights Reserved. 浙ICP 9017588