China DOS Union

-- Unite DOS · Advance DOS · Grow DOS --

Union site: www.cn-dos.net Forum site: www.cn-dos.net/forum
DOS stands for freedom, openness and progress. Let us work hard, learn from the openness and GNU spirit of FreeDOS and Linux, and together build and grow a free GNU GPL world!

中国DOS联盟论坛
The time now is 2026-08-12 07:06
中国DOS联盟论坛 » DOS批处理 & 脚本技术(批处理室) » Using BAT to Print Dots View 822 Replies 2
Original Poster Posted 2010-06-09 21:54 ·  中国 上海 闵行区 电信
新手上路
Credits 3
Posts 2
Joined 2010-03-05 12:39
16-year member
UID 161629
Gender Male
Status Offline
Need a piece of code to achieve the following:
Since a certain program takes a long time to run, I want dots to appear while the program is running, so that when users see “.......” they won’t mistake it for the program hanging.
Recent Ratings for This Post ( 1 in total) Click for details
RaterScoreTime
+1 2010-06-10 10:16
Floor 2 Posted 2010-06-10 04:19 ·  中国 广东 广州 电信
初级用户
★★
Credits 89
Posts 76
Joined 2009-12-13 13:41
16-year member
UID 156499
Gender Male
Status Offline
Floor 3 Posted 2010-06-10 09:30 ·  中国 上海 联通
新手上路
Credits 3
Posts 2
Joined 2010-03-05 12:39
16-year member
UID 161629
Gender Male
Status Offline
Originally posted by gool123456 at 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=
...

I fiddled with it myself for several days and still couldn't get it done, thank you very much.
Forum Jump: