Hi Guys...

Playing with the "seed" code, I'm using the following separated lines in my routine:

 Code:
$rc = WriteLine(1, "Physical Memory: " + $wmiObj.TotalPhysicalMemory + @CRLF )

And
 Code:
$rc = WriteLine(1, "Hard Drive: " + $wmiObj.Size + @CRLF)

And
 Code:
$rc = WriteLine(1, "Drive Space: " + $wmiObj.FreeSpace + @CRLF)


The code returns long numbers similar to the following (useless) values:
Physical Memory: 2146713600
Hard Drive: 160039239680
Drive Space: 105328513024


How can I make these values look like:
Physical Memory: 2.1mb
Hard Drive: 160mb
Drive Space: 90mb
etc?

I tried doing:
 Code:
$rc = WriteLine(1, "Hard Drive: " + VAL($wmiObj.Size)/1000000000 + @CRLF)

but that wasn't useful.