标题: 用BAT 实现打点
[打印本页]
作者: i57110403
时间: 2010-6-9 21:54
标题: 用BAT 实现打点
求一段程序,实现需求如下:
由于某个程序运行时间较长,希望程序在运行的时候出现打点,让用户看到有“.......”时,不会误解为程序当机。
作者: gool123456
时间: 2010-6-10 04:19
@echo off&setlocal enabledelayedexpansion
mode con cols=50 lines=1
:a
cls&echo.
for /l %%i in (1,1,10) do (
set "char=!char!."
set num=%%i
if !num! equ 10 set char=
set/p=!char!<nul
ping 127.1 -n 2 >nul
)
goto a
作者: i57110403
时间: 2010-6-10 09:30
标题: 我自己弄了好几天都没搞定,非常感谢。
Quote: |
Originally posted by gool123456 at 2010-6-10 04:19:
[code]@echo off&setlocal enabledelayedexpansion
mode con cols=50 lines=1
:a
cls&echo.
for /l %%i in (1,1,10) do (
set "char=!char!."
set num=%%i
if !num! equ 10 set char=
... |
|
我自己弄了好几天都没搞定,非常感谢。