I\'m trying to get info of the physical drives in a computer with wmic to get something like this:
Drive C:
500 GB Total
100 GB Free
20% Free
Drive D:
500 G
As the errormessage tells you, set is limited to 32-bit-integers. If you can live with an accuracy of MB, you can shorten the numbers like this:
set SizeMB=%size:~0,-6%
(it takes the string except the last 6 characters)
It may be not quite correct in a mathematic sense, but should be good enough.
Of course you will have to shorten %freeMB% the same way.