|
fbwolf
初级用户
 
积分 56
发帖 22
注册 2006-12-13
状态 离线
|
|
2006-12-13 11:45 |
|
|
redtek
金牌会员
     
积分 2902
发帖 1147
注册 2006-9-21
状态 离线
|
『第 2 楼』:
使用 LLM 解释/回答一下
|

Redtek,一个永远在网上流浪的人……
_.,-*~'`^`'~*-,.__.,-*~'`^`'~*-,._,_.,-*~'`^`'~*-,._,_.,-*~'`^`'~*-,._ |
|
2006-12-13 12:05 |
|
|
fbwolf
初级用户
 
积分 56
发帖 22
注册 2006-12-13
状态 离线
|
『第 3 楼』:
使用 LLM 解释/回答一下
全说都是不能和程序进度同步的!没意思,实现太简单
All said that it can't be synchronized with the program progress! It's boring, the implementation is too simple
|
|
2006-12-14 00:01 |
|
|
zh159
金牌会员
     
积分 3687
发帖 1467
注册 2005-8-8
状态 离线
|
『第 4 楼』:
使用 LLM 解释/回答一下
批处理里要实现进度条和程序进度同步基本上是......
In batch processing, basically to achieve the synchronization between the progress bar and the program progress is...
|
|
2006-12-14 00:07 |
|
|
blueglede
新手上路

积分 6
发帖 3
注册 2007-1-4
状态 离线
|
『第 5 楼』:
使用 LLM 解释/回答一下
我想要的是:首先先开始执行xcopy拷贝文件(可以不显示拷贝的信息)仅仅加上
文件数据处理中……
然后在此时开始执行进度条。
也就是说在程序执行期间便开始了进度条,这个进度条是“模糊”的,我只要这个效果,
而不需要精确同步。
What I want is: First, start executing xcopy to copy files (without displaying copy information) and just add "File data processing..." Then start the progress bar at this time. That is to say, the progress bar starts during the program execution, and this progress bar is "blurred". I just want this effect, and don't need precise synchronization.
|
|
2007-2-8 06:04 |
|
|
zh159
金牌会员
     
积分 3687
发帖 1467
注册 2005-8-8
状态 离线
|
『第 6 楼』:
使用 LLM 解释/回答一下
CMD下copy/z倒是有个百分比进度
There is a percentage progress with the CMD command copy/z.
|
|
2007-2-8 06:16 |
|
|
NaturalJ0
银牌会员
    
积分 1181
发帖 533
注册 2006-8-14
状态 离线
|
『第 7 楼』:
使用 LLM 解释/回答一下
由一个批打开两个进程,一个运行,一个监控并显示相关信息?
Open two processes with one batch, one runs, and the other monitors and displays relevant information?
|
|
2007-2-8 06:26 |
|
|
blueglede
新手上路

积分 6
发帖 3
注册 2007-1-4
状态 离线
|
『第 8 楼』:
使用 LLM 解释/回答一下
实际上就是这样:
xcopy.exe执行拷贝文件
xcopy /s /q d:\game e:\netgame
当以上程序执行的时候开始显示进度条,不需要精确统计,只要显示进度状态就可以了。
(因为xcopy加了参数q之后就没有显示信息了,接下来就靠进度条来显示(无限延时的)
Actually it is like this:
xcopy.exe performs file copying
xcopy /s /q d:\game e:\netgame
When the above program is executed, a progress bar starts to be displayed. No need for precise statistics, just display the progress status.
(Because after adding the parameter q to xcopy, there is no display information. Then it depends on the progress bar to display (infinite delay)
|
|
2007-2-8 06:40 |
|
|
redtek
金牌会员
     
积分 2902
发帖 1147
注册 2006-9-21
状态 离线
|
『第 9 楼』:
使用 LLM 解释/回答一下
6楼zh159兄的方法精彩~:)
如果blueglede兄一定要挑战这种DIY的事情,也不是没有办法:)
) 把要XCOPY的大文件用 LXMXN兄写的文件分割代码(论坛搜索),用其将大文件分割成100份!
) 然后通过FOR循环每COPY一份就显示一个进度的过程,当第100份COPY完就自然显示到进度100%。
这样就是比较精确的方法:)
对了,100份都COPY完了再COPY /B拼接它们……(还原)
这样的话,进度条兄就可以随意定制各种各样的进度条了:)
但是,分割一个大文件需要时间和需要再占用同样文件大小的空间。然后每COPY一个子块就调用一次显示进度条的批处理代码,当第100块都COPY完的时候,估计兄要COPY一个100MB的大文件,需要用去普通XCOPY总时间的2-3倍之间,哈哈……
Last edited by redtek on 2007-2-7 at 05:49 PM ]
The method of brother zh159 on floor 6 is wonderful ~ :)
If brother blueglede must challenge this kind of DIY thing, it's not impossible ~ :)
) Split the large file to be XCOPYed using the file splitting code written by brother LXMXN (search in the forum), and use it to split the large file into 100 parts!
) Then use a FOR loop to display a progress process for each COPY of one part. When the 100th part is copied, it will naturally show 100% progress.
This is a relatively precise method ~ :)
By the way, after all 100 parts are copied, copy /B to splice them... (restore)
In this way, brother progress bar can freely customize various progress bars ~ :)
But, splitting a large file takes time and also needs to occupy the same amount of file size space. Then each time a sub-block is copied, the batch code for displaying the progress bar is called once. When all 100 blocks are copied, it is estimated that brother needs to copy a 100MB large file, and it will take 2-3 times the total time of the ordinary XCOPY, haha...
Last edited by redtek on 2007-2-7 at 05:49 PM ]
|

Redtek,一个永远在网上流浪的人……
_.,-*~'`^`'~*-,.__.,-*~'`^`'~*-,._,_.,-*~'`^`'~*-,._,_.,-*~'`^`'~*-,._ |
|
2007-2-8 06:43 |
|
|
anqing
高级用户
   
积分 859
发帖 413
注册 2006-8-14
状态 离线
|
『第 10 楼』:
使用 LLM 解释/回答一下
r兄的建议做起来,好像不容易吧
It seems not easy to put brother r's suggestion into practice, right?
|
|
2007-2-8 08:45 |
|
|
blueglede
新手上路

积分 6
发帖 3
注册 2007-1-4
状态 离线
|
『第 11 楼』:
使用 LLM 解释/回答一下
其实只要简单的滚动条代替xcopy.exe拷贝文件的信息就可以了。
没有必要,也很难做到——精确的同步。
In fact, it is okay to simply use a scroll bar to replace the information of copying files by xcopy.exe. There is no need, and it is very difficult to achieve - precise synchronization.
|
|
2007-2-9 14:32 |
|
|
ding520
初级用户
 
积分 29
发帖 15
注册 2007-2-17
状态 离线
|
|
2007-2-17 03:31 |
|