Wondering if anyone knows of the simplest way to determine the size of a specific folder's contents from the Windows command line and save the numerical value under a variable?
-
Thanks but I just want to store the total folder size to a command line variable.
Like:
Foldersize = (command here)
Command to store the size of the folder as a numerical value in bytes, KB, MB, GB, I don't care, I can always convert. -
Well, found it thanks to a kind user at stackoverflow: Windows Command Line - Determine Folder Contents Size and save as numerical value - Stack Overflow
A lot more complicated than it should be.
Determine folder file size from command line and save as variable
Discussion in 'Windows OS and Software' started by HTWingNut, Mar 3, 2013.