FileLen Function
Devolve o tamaño dun ficheiro en bytes.
Sintaxe:
FileLen (Texto As String)
Valor de retorno:
Long
Parámetros:
Text: Any string expression that contains an unambiguous file specification. You can also use URL notation.
Esta función determina o tamaño dun ficheiro. Se chama a función FileLen para un ficheiro aberto, devolve o tamaño do ficheiro antes de que se abrise. Para determinar o tamaño actual dun ficheiro aberto, use a función Lof.
Exemplo:
Sub ExampleFileLen
MsgBox FileLen("C:\autoexec.bat")
End Sub