Batch File: Convert bytes to either KB, MB or GB with 2 decimal points
Posted on 2010-08-19
I need to create a batch file that will convert a number in bytes to either KB, MB or GB with 2 decimal points.
FOR %%A IN (4321,1342.56,2145386496) do (
ECHO "%%A" is easyer to read like this: %ConvertedNumber%
Hoping this will be easy points for you.