Funció FileLen

Torna la longitud d'un fitxer en bytes.

Sintaxi:


FileLen (Text As String) As Long

Valor de retorn:

Long

tip

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


Paràmetres :

Text: Qualsevol expressió de cadena que conté una especificació de fitxer no ambigua. També podeu utilitzar la notació 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.

Codis d'error

5 La crida al procediment no és vàlida

Exemple :


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

Ens cal la vostra ajuda!