And what is this about?
code:
$Sice  = $objItem.Size
$LSize = Len( $Sice )
$MSize = SubStr( $Sice, 1, $LSize - 3 )
$Size = ( 524288 + $MSize ) / 1048576

Can you please explain the reasons for this, maybe even line by line?

.Size returns the size in bytes, it should be easy to convert to Megabytes or GigaBytes by dividing with the appropriate conversion factor.

[ 29. October 2003, 19:13: Message edited by: sealeopard ]
_________________________
There are two types of vessels, submarines and targets.