Função FileLen

Devolve o comprimento de um ficheiro em bytes.

Sintaxe:


FileLen (Text As String) As Long

Valor de retorno:

Long

tip

Use ScriptForge.FileSystem service GetFileLen() method when size is expected to be over 2 gigabytes.


Parâmetros:

Texto: qualquer expressão em caracteres que contenha uma especificação do ficheiro inequívoca. É também possível utilizar a notação URL.

This function determines the length of a file. If the FileLen function is called for an open file, it returns the file length before it was opened. To determine the current file length of an open file, use the Lof function.

Códigos de erro

5 Chamada de procedimento inválido

Exemplo:


Sub ExampleFileLen
    MsgBox FileLen("C:\autoexec.bat")
End Sub

Necessitamos da sua ajuda!