to 3742668:
Thank you for your patient answer, which solved a long-standing problem for me. Thanks again.
"If you want to get the precise space number in megabytes, it's not impossible. As long as change the division to subtraction and write your own code in two parts to calculate, it's okay"
----Hehe, I didn't expect there is such a way of writing. Batch processing is really interesting. Can you post a code snippet to let me have a look?
"Of course, not very practical."
----Do you mean that the approach of dividing into two code segments is not practical or that displaying in megabytes is not practical? If it's the latter, I don't quite agree with you.
"Actually, using wmic can save the remaining space numbers of each disk, and then through calculation by yourself to get the megabyte number should be simpler."
----Will this generate temporary files? If temporary files are to be generated, it doesn't feel very perfect.
[ Last edited by namejm on 2006-4-22 at 17:42 ]