Heres My Newest Ideal :3 Well.. I Noticed That 'FileGetSize' Tells You The File Size In Bytes.. Well I Came Out With A Cool Function To Return The File Size In Mega Bytes!
~Enjoy~
(_FileSize.AU3)
$MegaByte = ('1048576')
Func _FileSize_In_MegaBytes ($File)
$FileSizeInBytes = FileGetSize ($File)
$Equal = $FileSizeInBytes / $MegaByte
$Round = Round ($Equal, '2')
Return $Round
EndFuncoÝ÷ Ù«¢+Ø%¹±Õ±Ðí}¥±M¥é¹ÔÌÐì((ÀÌØíáµÁ±ô}¥±M¥é}%¹}5 åÑÌ ÅÕ½ÐíèÀäÈí]¥¹½ÝÌÀäÈíU9M%AAL¹áÅÕ½Ðì¤()5Í ½à À°ÅÕ½Ðí
Here is a function to return display size, so when it needed, it will return KB/MB/GB/TB... ConsoleWrite(_GetDisplaySize(1023) & @LF) ; Bytes
ConsoleWrite(_GetDisplaySize(1548) & @LF) ; KBytes
ConsoleWrite(_GetDisplaySize(1024 * 1369) & @LF) ;MBytes
ConsoleWrite(_GetDisplaySize(1024 * 1024 * 1876) & @LF) ;GBytes
ConsoleWrite(_GetDisplaySize(1024 * 1024 * 1024 * 1656)) ;TBytes
Func _GetDisplaySize($iSize, $iPlaces = 2)
Local $aBytes[5] = [' Bytes', ' KB', ' MB', ' GB', ' TB']