Código: Seleccionar todo
; Autor........ : Pink
; Nombre........: LOF
;Return..........: largo de Archivo en bytes.
; Uso............: LOF($sfile)
;Gracias Yashied por la Corrección
func LOF($sFile)
$hFile = DllCall('kernel32.dll', 'ptr', 'CreateFileW', 'wstr', $sFile, 'dword', 0x80000000, 'dword', 0x06, 'ptr', 0, 'dword', 3, 'dword', 0, 'ptr', 0)
$Ret = DllCall('kernel32.dll', 'int', 'GetFileSizeEx', 'ptr', $hFile[0], 'uint64*', 0)
DllCall('kernel32.dll', 'int', 'CloseHandle', 'ptr', $hFile[0])
Return $Ret[2]
EndFunc
saludos