中国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-31 04:17
47,815 topics / 349,930 posts / today 0 new / 48,290 members
DOS批处理 & 脚本技术(批处理室) » Batch processing emotional progress bar
Printable Version  27,980 / 207
Floor181 344611734 Posted 2008-02-27 20:58
初级用户 Posts 30 Credits 62
Not bad! It would be even better if the code is more concise. Hehe!
Floor182 woyun Posted 2008-02-28 15:10
新手上路 Posts 1 Credits 2
It's quite fun. Come and have a look.
Floor183 minspring Posted 2008-02-28 22:44
新手上路 Posts 4 Credits 8
Bump
Floor184 sea1112 Posted 2008-03-19 01:29
初级用户 Posts 119 Credits 131 From gz
Originally posted by mouzeming at 2006-12-3 10:04 PM:
What does "ping -n 2 127.1>nul" mean?
I just joined not long ago. I don't understand this.
Please explain. I couldn't find relevant information online <maybe I didn't find it>



Ping yourself for 2 seconds >nul means not echoing the content

ping -n 2 127.1
Reply from 127.0.0.1: bytes=32 time<1ms TTL=64
Reply from 127.0.0.1: bytes=32 time<1ms TTL=64

ping -n 2 127.1>nul
The time-consuming content is not echoed

ok...
Floor185 zsj008od Posted 2008-03-19 19:26
初级用户 Posts 12 Credits 28
ping -n 2 127.1>nul
Can be solved with sleep from 2003 Resource Kits Tools
C:\Documents and Settings\Administrator\Desktop\Resource Kits Tools>sleep /?
Usage: sleep time-to-sleep-in-seconds
sleep [-m] time-to-sleep-in-milliseconds
sleep [-c] commited-memory ratio (1%-100%)
Floor186 zsj008od Posted 2008-03-19 19:28
初级用户 Posts 12 Credits 28
Originally posted by sea1112 at 2008-3-19 01:29 AM:

Ping yourself with a time of 2 seconds >nul means no content is echoed

Ping -n 2 127.1
Reply from 127.0.0.1: bytes=32 time<1ms TTL=64
Reply from 127.0.0.1: bytes=32 time<1ms TTL=64

Ping -n 2 1 ...


Ping your own computer (127.0.0.1) twice, output the result to nul, which serves the purpose of delaying.
C:\>ping /?

Usage: ping
| ]
target_name

Options:
-n count Number of echo requests to send.
Floor187 atkmtouch Posted 2008-04-14 08:12
新手上路 Posts 1 Credits 2
Floor188 joyn Posted 2008-05-06 04:02
中级用户 Posts 105 Credits 280 From 广西
Floor189 joyn Posted 2008-05-06 04:17
中级用户 Posts 105 Credits 280 From 广西
But it's too redundant. It's better to simplify it.
Floor190 joyn Posted 2008-05-06 19:44
中级用户 Posts 105 Credits 280 From 广西
@echo off
mode con lines=10
title Emotional Progress Bar
color 0c
set /a sleep=1
set n=0
for /l %%i in (1,1,36) do (set /a n+=1&call :ech)
color fc
echo. Press any key to exit.......
pause > nul
exit
:ech
cls
set /a k=%n%*100
set /a i=%k%/36
if "%n%" EQU "36" (set end=Love Overflow...)
set bar=%bar%▉
echo ┏━━┓I ●╭○╮ I┏━━┓
echo ┃Eternity┃LOVE ★ /█∨█\ ★ Miss┃Forever┃
echo ┃Endurance┃You ∏ ∏ You┃Own┃
echo ┗━━┛. I love you for ten thousand years ┗━━┛
echo Emotional Progress Bar......%i%% %end%
echo ┏────────────────────────────────────┓
echo │%bar%
echo ┗────────────────────────────────────┛
ping -n %sleep% 127.1 > nul
Floor191 webshare Posted 2008-05-22 23:17
新手上路 Posts 3 Credits 6
Yeah, I'll download it and try it out.
Floor192 radem Posted 2008-05-23 00:59
高级用户 Posts 383 Credits 691
Newcomer here to participate in learning. Thanks for sharing!
Floor193 webshare Posted 2008-05-23 09:30
新手上路 Posts 3 Credits 6
If this can be combined with FTP upload, it would be even better!
Floor194 nethyx Posted 2008-05-23 13:17
新手上路 Posts 2 Credits 4
Now some programs still use batch processing, and adding such a scroll bar makes it much more beautiful.
Floor195 woo88 Posted 2008-05-23 23:05
初级用户 Posts 96 Credits 188
Originally posted by joyn at 2008-5-6 07:44 PM:
@echo off
mode con lines=10
title 感情进度条
color 0c
set /a sleep=1
set n=0
for /l %%i in (1,1,36) do (set /a n+=1&call :ech)
color fc
echo.任意健退出.......
pause > nul
...

Not bad, support
Prev  1 … 10 11 12 13 14  Next
[ Contact the Union admin team - 中国DOS联盟 - Standard version ]
Sponsored by ifanr Inc | © 2001–2023