|
done
新手上路

积分 9
发帖 5
注册 2006-10-11
状态 离线
|
『第 31 楼』:
稍稍修改了一下
使用 LLM 解释/回答一下
把.换成了▌
@echo off
setlocal enabledelayedexpansion
set b=/-\ /-\ **
set 速度=1
set 退格=
:b
for /l %%i in (0,1,200) do call :a %%i
goto :b
:a
set/a a=%1%%10
set/a c=%a%%%4
if %a% EQU 0 set/p=▌<nul
if %c% EQU 3 (set/p=^|<nul) else (set/p=!b:~%a%,1!<nul)
ping/n %速度% 127.1>nul
set/p=%退格%<nul
goto :eof
Replaced . with ▌
@echo off
setlocal enabledelayedexpansion
set b=/-\ /-\ **
set 速度=1
set 退格=
:b
for /l %%i in (0,1,200) do call :a %%i
goto :b
:a
set/a a=%1%%10
set/a c=%a%%%4
if %a% EQU 0 set/p=▌<nul
if %c% EQU 3 (set/p=^|<nul) else (set/p=!b:~%a%,1!<nul)
ping/n %速度% 127.1>nul
set/p=%退格%<nul
goto :eof
|
|
2006-11-2 01:33 |
|
|
yangzhiyi
中级用户
  
积分 261
发帖 123
注册 2006-6-6
状态 离线
|
『第 32 楼』:
使用 LLM 解释/回答一下
Originally posted by kawakumo at 2006-11-1 13:58:
如果把这个效果用于表示进度,怎样控制?比如显示复制文件的进度。
这个才是问题
我只想知道,比如复制文件就显示进度,不用进度对应,只要显示就行,复制完后进度就不显示。
Originally posted by kawakumo at 2006-11-1 13:58:
How to control if this effect is used to represent progress? For example, display the progress of copying files.
This is the real problem
I just want to know, for example, to display the progress when copying files, no need for progress correspondence, just display it, and the progress will not be displayed after copying is completed.
|
|
2006-11-2 02:05 |
|
|
chenall
银牌会员
    
积分 1276
发帖 469
注册 2002-12-23 来自 福建泉州
状态 离线
|
『第 33 楼』:
使用 LLM 解释/回答一下
效果不是很好,运行这个会将c:\windows\*.*复制到当前目录并显示进度.
- @echo off
- setlocal enabledelayedexpansion
- set b=/-\ /-\ **
- set 速度=1
- set 退格=
- set n=0
- for %%i in (%SystemRoot%\*.*) do (call :a !n!© %%i>nul 2>nul&set /a n+=1)
- goto :eof
- :a
- set/a a=%1%%10
- set/a c=%a%%%4
- if %a% EQU 0 set/p=▌<nul
- if %c% EQU 3 (set/p=^|<nul) else (set/p=!b:~%a%,1!<nul)
- ping/n %速度% 127.1>nul
- set/p=%退格%<nul
- goto :eof
chenall 发表于: 2006-11-03 08:37
Last edited by chenall on 2006-11-3 at 08:46 PM ]
The effect is not very good. Running this will copy c:\windows\*.* to the current directory and display the progress.
- @echo off
- setlocal enabledelayedexpansion
- set b=/-\ /-\ **
- set 速度=1
- set 退格=
- set n=0
- for %%i in (%SystemRoot%\*.*) do (call :a !n!© %%i>nul 2>nul&set /a n+=1)
- goto :eof
- :a
- set/a a=%1%%10
- set/a c=%a%%%4
- if %a% EQU 0 set/p=▌<nul
- if %c% EQU 3 (set/p=^|<nul) else (set/p=!b:~%a%,1!<nul)
- ping/n %速度% 127.1>nul
- set/p=%退格%<nul
- goto :eof
chenall posted on: 2006-11-03 08:37
Last edited by chenall on 2006-11-3 at 08:46 PM ]
|

QQ:366840202
http://chenall.net |
|
2006-11-3 20:41 |
|
|
kawakumo
初级用户
 
积分 32
发帖 9
注册 2006-10-30
状态 离线
|
|
2006-11-4 08:33 |
|
|
skyearth
初级用户
 
积分 34
发帖 13
注册 2006-7-20
状态 离线
|
『第 35 楼』:
使用 LLM 解释/回答一下
偶也来改进一下,显示有竖线的进度循环,呵呵!
@echo off
setlocal enabledelayedexpansion
set b=^|/-\
set 速度=1
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
I also come to improve, display a progress loop with vertical lines, heh!
@echo off
setlocal enabledelayedexpansion
set b=^|/-\
set 速度=1
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
|
|
2006-11-10 00:41 |
|
|
terse
银牌会员
    
积分 2404
发帖 946
注册 2005-9-8
状态 离线
|
『第 36 楼』:
使用 LLM 解释/回答一下
Originally posted by skyearth at 2006-11-10 00:41:
偶也来改进一下,显示有竖线的进度循环,呵呵!
@echo off
setlocal enabledelayedexpansion
set b=^|/-\
set 速度=1
set 退格=
:b
for /l %%i in (0,1,200) do call :a %% ...
是否可以自己定位进度循环在屏幕中的位置.
Can the progress loop be positioned in a specific location on the screen by oneself?
|
|
2006-11-19 07:43 |
|
|
hxuan999
中级用户
   DOS之日
积分 337
发帖 161
注册 2006-11-4
状态 离线
|
『第 37 楼』:
使用 LLM 解释/回答一下
学习
|

for /f %%h in (`echo hxuan`) do for /f %%x in (`echo hxuan`) do if %%h==%%x nul |
|
2006-11-23 06:43 |
|
|
donpps
初级用户
 
积分 56
发帖 20
注册 2006-4-23
状态 离线
|
『第 38 楼』:
如果进度条能够与被调用的子程序同步就好了。
使用 LLM 解释/回答一下
33楼的演示了文件复制的情形,以复制文件的个数为步进量,如果只复制一个比较大的(>=500m)文件呢,怎么办!
如果进度条能够与被调用的子程序同步就好了。
The demonstration on floor 33 shows the situation of file copying, taking the number of copied files as the step size. What if only copying one relatively large file (>=500m)? It would be nice if the progress bar could be synchronized with the called subroutine.
|
|
2006-12-14 00:41 |
|
|
a11yesno
新手上路

积分 18
发帖 6
注册 2007-3-2
状态 离线
|
『第 39 楼』:
使用 LLM 解释/回答一下
nb 不太喜欢用ping控制延迟 用
for /l %%i in (1,1,1000) do echo %%i>nul 吧
Last edited by a11yesno on 2007-3-2 at 04:36 AM ]
nb doesn't like using ping to control latency, uses
for /l %%i in (1,1,1000) do echo %%i>nul instead
Last edited by a11yesno on 2007-3-2 at 04:36 AM ]
|
|
2007-3-2 16:30 |
|
|
xycoordinate
中级用户
  
积分 493
发帖 228
注册 2007-2-16 来自 安徽
状态 离线
|
『第 40 楼』:
使用 LLM 解释/回答一下
chenall:
for %%i in (%SystemRoot%\*.*) do (call :a !n!© %%i>nul 2>nul&set /a n+=1)
看不太清楚!
为何???(%SystemRoot%\*.*)
set/a a=%1%%10
是%1除以10取余?
set/a c=%a%%%4
是%a%除以4取余?
© %%i>nul
害人呀????!!!
幸好,你没有
&del %%i>nul
那可就惨了!<img src="images/smilies/face-cool.png" align="absmiddle" border="0">
Last edited by xycoordinate on 2007-3-2 at 03:49 PM ]
chenall:
for %%i in (%SystemRoot%\*.*) do (call :a !n!© %%i>nul 2>nul&set /a n+=1)
Can't see clearly!
Why??? (%SystemRoot%\*.*)
set/a a=%1%%10
Is it %1 divided by 10 and take the remainder?
set/a c=%a%%%4
Is it %a% divided by 4 and take the remainder?
© %%i>nul
Harmful!!!
Fortunately, you didn't
&del %%i>nul
That would be terrible! :cool:
Last edited by xycoordinate on 2007-3-2 at 03:49 PM ]
|
|
2007-3-3 04:35 |
|
|
zhoushijay
高级用户
    Autowalk
积分 845
发帖 375
注册 2007-3-3
状态 离线
|
『第 41 楼』:
使用 LLM 解释/回答一下
真的转起来了,-_-! 真强悍!
It really started spinning, -_-! It's really powerful!
|
|
2007-3-3 07:11 |
|
|
yjhyxing
初级用户
  ☆流星雨◇帅气冲天狂
积分 24
发帖 21
注册 2007-3-9 来自 广东
状态 离线
|
『第 42 楼』:
使用 LLM 解释/回答一下
看贴回贴养成好习惯
Develop the good habit of reading and replying to posts
|
|
2007-3-12 06:52 |
|
|
windeshadow
初级用户
 
积分 38
发帖 15
注册 2007-4-13
状态 离线
|
|
2007-4-17 02:21 |
|
|
GOTOmsdos
铂金会员
       C++启程者
积分 5154
发帖 1827
注册 2003-7-18
状态 离线
|
『第 44 楼』:
使用 LLM 解释/回答一下
恩,获取ASCII控制符的玩法很不错,挺过瘾..
不过,如果只想获取0x08字符, 用个16进制编辑器,输入08就行了吧?
Well, the way to get ASCII control characters is pretty good, quite enjoyable..
But if you just want to get the 0x08 character, can you just enter 08 with a hex editor?
|
|
2007-4-17 03:08 |
|
|
xuewenzi
新手上路

积分 4
发帖 2
注册 2007-4-10
状态 离线
|
『第 45 楼』:
使用 LLM 解释/回答一下
闹大了哦 !六楼的大哥效果不错,就是看着不舒服
It's a big deal! The effect of the brother on the sixth floor is good, but it just looks uncomfortable
|
|
2007-4-17 04:35 |
|