返回列表 发帖
@for /l %%i in (10,-1,1) do @echo %%i
@pause>nulCOPY

TOP

@echo off
set a=10
for /l %%i in (10,-1,1) do (echo %%i)
pause>nulCOPY

TOP

@echo off
for /l %%a in (10,-1,0) do echo %%a&ping /n 2 127.1>nul&cls
pauseCOPY

TOP

@echo off
for %%I in (0 1 2 3 4 5 6 7 8 9) do @ping 127.0.0.1 -n 3 > nul & echo %%I
pauseCOPY

TOP

@echo off
color 3b
for /L %%a in (
10,-1,0
) do (
for /l %%a in (1,1,8) do echo\
echo                                   倒计时 %%a
ping -n 2 127.1 1>nul 2>nul
cls
)COPY

TOP

方法一
@echo off
for /l %%i in (10,-1,1) do (
cls
echo %%i
ping 127.1 -n 1 >nul)COPY
方法二
@echo off
set a=11
:loop
set /a a-=1
if %a% gtr 0 (
echo %a%
ping 127.1 -n 1 >nul
cls
go to :loop)
pauseCOPY
bat其实很简单

TOP

本帖最后由 lifei259 于 2013-11-30 13:37 编辑
@echo off
echo.十秒倒计时&echo.
for /l %%i in (10,-1,0) DO (
echo.%%i
ping 127.1 -n 3 1>nul&echo.
)
PAUSECOPY

TOP

本帖最后由 lifei259 于 2013-11-30 13:38 编辑

怎么贴不上16进制码,本来加入了声音的怎么没有了

TOP

@echo off
for /l %%i in (10,-1,1) do (
echo %%i
ping -n 2 127.1>nul
cls
)
pause>nulCOPY
学习中

TOP

@echo off
set /a c=1
:while
set /a n=11-c
set /a d=1
if %n% geq %d% ( echo %n% && set /a c+=1) && goto while else call :end
:end
pauseCOPY

TOP

@echo off
for /l %%i in (10 -1 1) do (
echo %%i
ping -n 2 localhost>nul
)
pause>nulCOPY

TOP

@echo off
for /l %%i in (10,-1,0) do (
  @ping -n %1 127.0.1>nul
  set /p= %%i <nul
)
pause >nulCOPY

TOP

我来一个
@echo off
set /a var=10
:loop
echo %var%
if %var%==1 goto abc
set /a var-=1
for /l %%i in (1,1,5040) do echo %%i>nul
::这里循环的作用就是延时,大约1s
goto loop
:abcCOPY

TOP

本帖最后由 ads350668398 于 2014-10-23 18:40 编辑

:a
echo 10
ceho 9
echo 8
ceho 7
echo6
5
4
3
2
1
0
ping/n 20 127.0.0.1>nul
goto a

TOP

@echo off

for /l %%a in (10,-1,1) do (

        echo %%a

        ping 127.0.0.1 -n 9>nul

        cls
)

pause>n

TOP

返回列表