9/28/2023 0 Comments Folder size windows 10 download![]() ![]() These are the results i got, and they are pretty consistent in relevance to each other, robocopy blows them away (There are some more answers, but these are the ones I've been able to incorporate) Option III: use the compact command to iterate - from IV: from - using robocoby Option II: Iterate, with findstr pipe and output the result directly (no converstion to MB) - from ND ![]() Option I: Iterate through directories, using VB script to read in the text output from 'dir' and look for the size at the end + convert it to MB (originally got it from somewhere else that I actually lose the place where I got it from) There are some small bugs with some parts like option 3 will fail because it tries to handle a number bigger than 32-bit limit, and I'm sure there is some more issues, but the general timings I think are evident unless I really messed up on my logic. So the question is which one of these is the fastest / should be fastest, and if there are any other fast(er) ways to get size of folder contents that has 100k+ files (and there are 100s of folders)īelow is my very hacky way of doing the comparison (butchered my program to see some outputs) Now with exception of #3 both of those ways seem way too slow for what I need (100s of thousands of files). Into a text file, and then read in the size at the bottomģ.The last way I am trying right now is using du (disk utility tool from MS - ). PLEASE SEE BELOW THE ORIGINAL QUESTION FOR SOME TEST COMPARISONS OF DIFFERENT WAYS:ġ.Iterate through directory using the code from Get Folder Size from Windows Command Line : offįor /r %%x in (folder\*) do set /a size+=%%~zx ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |