中国DOS联盟论坛

China DOS Union

-- Unite DOS · Advance DOS · Grow DOS --
Union site: www.cn-dos.net Forum site: www.cn-dos.net/forum
Guest | Log in | Register | Members | Search | China DOS Union
中国DOS联盟论坛
The time now is 2026-10-25 04:12
47,815 topics / 349,928 posts / today 0 new / 48,288 members
DOS批处理 & 脚本技术(批处理室) » How to represent a progress status with "\-/"?
Printable Version  27,933 / 57
Floor46 crenel Posted 2007-04-17 05:12
新手上路 Posts 6 Credits 18
Wrote a...
Fainted....Only after sending did I realize it was an old post....Oh my...



[ Last edited by crenel on 2007-4-16 at 04:15 PM ]
Floor47 menglongfc Posted 2007-04-22 00:40
初级用户 Posts 25 Credits 45
Very interesting, I'll take it
Floor48 lililulula Posted 2007-05-09 14:27
中级用户 Posts 138 Credits 302
```
@echo off
rem qwe1234567 character animation

setlocal enabledelayedexpansion
set b=\^|/-\^|/-
set 速度=1

rem The ASCII code 08 is the backspace special control character
set 退格=


:b
for /l %%i in (0,1,200) do call :a %%i
goto :b
:a
set/a a=%1%%4
set/p=!b:~%a%,1!<nul
ping/n %速度% 127.1>nul
set/p=%退格%<nul
goto :eof
```
Beautify the effect of the redtek rotation animation :) Will digging up graves be -_-?
Floor49 haiou327 Posted 2007-05-12 17:22
高级用户 Posts 348 Credits 713
Awesome!!!!!
Floor50 haiou327 Posted 2007-05-12 18:04
高级用户 Posts 348 Credits 713
What you want is this effect, right.

@echo off
:: Simulate progress, with remaining time, completed progress, and progress bar display
:: code by bg 2007-05-12 CMD@XP
color 2f
title.
mode con lines=10
rem Progress bar ▉▉▉▉▉
set work=0
set n=0
set mo=0
set number=0
rem all is the total number
set all=60
set time=%all%
:show

:check
if %number% GTR %mo% set num=%num%▉&set /a mo=%mo%+1&goto check

:2
Floor51 lowellsky Posted 2007-05-28 01:04
新手上路 Posts 3 Credits 7
There are so many experts in LS.
Floor52 luowei14 Posted 2007-05-28 18:30
初级用户 Posts 98 Credits 193
Well, I can't really say much...
Floor53 379184514 Posted 2008-10-08 05:04
初级用户 Posts 17 Credits 25
Power user
Floor54 auyach Posted 2009-05-01 23:34
新手上路 Posts 2 Credits 3
Thanks for sharing, learning.
Floor55 sunxh Posted 2009-09-12 13:00
新手上路 Posts 5 Credits 3
Wonderful!
Floor56 h5599859 Posted 2009-09-14 15:24
新手上路 Posts 3 Credits 6
@echo off
:kk
set /p=^\<nul
ping -n 1 127.0.0.1>nul
cls
set /p=^|<nul
ping -n 1 127.0.0.1>nul
cls
set /p=^/<nul
ping -n 1 127.0.0.1>nul
cls
goto kk
Floor57 holts Posted 2009-09-17 21:33
新手上路 Posts 1 Credits 1
Nice
Floor58 zhangjeff Posted 2010-01-25 15:21
新手上路 Posts 1 Credits 1
Look~~~~~~~~~~~~~~~~~
Prev  1 2 3 4
[ Contact the Union admin team - 中国DOS联盟 - Standard version ]
Sponsored by ifanr Inc | © 2001–2023