![]() |
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-08-03 10:58 |
48,038 topics / 350,123 posts / today 0 new / 48,251 members |
| DOS批处理 & 脚本技术(批处理室) » Ask, how to make a progress bar that can also be synchronized with the program's operation |
| Printable Version 1,581 / 11 |
| Floor1 fbwolf | Posted 2006-12-13 11:45 |
| 初级用户 Posts 22 Credits 56 | |
|
As the title says
|
|
| Floor2 redtek | Posted 2006-12-13 12:05 |
| 金牌会员 Posts 1,147 Credits 2,902 | |
|
Progress bar related content please refer to the following posts~:)
Batch processing emotional progress bar http://www.cn-dos.net/forum/viewthread.php?tid=25345&fpage=1&highlight=progress How to use "\-/" to represent a progress state http://www.cn-dos.net/forum/viewthread.php?tid=24347&fpage=1&highlight=progress A question about progress bar delay http://www.cn-dos.net/forum/viewthread.php?tid=25386&fpage=1&highlight=progress How to simulate the display effect of listing paths like Rising Antivirus scanning in batch processing? http://www.cn-dos.net/forum/viewthread.php?tid=23793&fpage=1&highlight=progress bar Trouble caused by a GIF file http://www.cn-dos.net/forum/viewthread.php?tid=20669&fpage=1&highlight=from+a+GIF+file+caused+trouble [ Last edited by redtek on 2006-12-12 at 11:09 PM ] |
|
| Floor3 fbwolf | Posted 2006-12-14 00:01 |
| 初级用户 Posts 22 Credits 56 | |
|
All said that it can't be synchronized with the program progress! It's boring, the implementation is too simple
|
|
| Floor4 zh159 | Posted 2006-12-14 00:07 |
| 金牌会员 Posts 1,467 Credits 3,687 | |
|
In batch processing, basically to achieve the synchronization between the progress bar and the program progress is...
|
|
| Floor5 blueglede | Posted 2007-02-08 06:04 |
| 新手上路 Posts 3 Credits 6 | |
|
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.
|
|
| Floor6 zh159 | Posted 2007-02-08 06:16 |
| 金牌会员 Posts 1,467 Credits 3,687 | |
|
There is a percentage progress with the CMD command copy/z.
|
|
| Floor7 NaturalJ0 | Posted 2007-02-08 06:26 |
| 银牌会员 Posts 533 Credits 1,181 | |
|
Open two processes with one batch, one runs, and the other monitors and displays relevant information?
|
|
| Floor8 blueglede | Posted 2007-02-08 06:40 |
| 新手上路 Posts 3 Credits 6 | |
|
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) |
|
| Floor9 redtek | Posted 2007-02-08 06:43 |
| 金牌会员 Posts 1,147 Credits 2,902 | |
|
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 ] |
|
| Floor10 anqing | Posted 2007-02-08 08:45 |
| 高级用户 Posts 413 Credits 859 | |
|
It seems not easy to put brother r's suggestion into practice, right?
|
|
| Floor11 blueglede | Posted 2007-02-09 14:32 |
| 新手上路 Posts 3 Credits 6 | |
|
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.
|
|
| Floor12 ding520 | Posted 2007-02-17 03:31 |
| 初级用户 Posts 15 Credits 29 | |
|
[ Contact the Union admin team -
中国DOS联盟 -
Standard version ] Sponsored by ifanr Inc | © 2001–2023 |