After the current tests... If everyone thinks it's good, please give me extra points. Hehe
The progress bar display problem of copying files has been initially solved!
Advantage: start /min copy path:\file name path:\ to run in multi-threaded way.
Difficulty: The problem of obtaining the hard disk copy file rate.
I wrote a batch file as a test, and this value is bytes per microsecond / 86000 (the result of rounding up).
Note that different specifications of hard disks have different results.
Need everyone to test by themselves. (I have solved it myself, and using it as a progress bar prompt is to estimate the copy time)
Algorithm idea.
1. Use the dir command to obtain the file size of the copied file.
2. Divide the file size by the hard disk transfer rate to get the delay time of the animation.
3. Use this time to write the animation.
I will directly give this code in the first floor below.
Note: The code is streamlined, and the first step is omitted.. (Because it's an algorithm :)
[ Last edited by flyinspace on 2007-4-1 at 02:34 PM ]
The progress bar display problem of copying files has been initially solved!
Advantage: start /min copy path:\file name path:\ to run in multi-threaded way.
Difficulty: The problem of obtaining the hard disk copy file rate.
I wrote a batch file as a test, and this value is bytes per microsecond / 86000 (the result of rounding up).
Note that different specifications of hard disks have different results.
Need everyone to test by themselves. (I have solved it myself, and using it as a progress bar prompt is to estimate the copy time)
Algorithm idea.
1. Use the dir command to obtain the file size of the copied file.
2. Divide the file size by the hard disk transfer rate to get the delay time of the animation.
3. Use this time to write the animation.
I will directly give this code in the first floor below.
Note: The code is streamlined, and the first step is omitted.. (Because it's an algorithm :)
[ Last edited by flyinspace on 2007-4-1 at 02:34 PM ]
知,不觉多。不知,乃求知

