FileLen Function

파일의 길이를 바이트로 구합니다.

Syntax:

FileLen (Text As String) As Long

Return value:

Long

tip

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


Parameters:

Text: 명확한 파일 지정을 포함하는 임의의 문자열 식입니다. 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.

Error codes:

5 잘못된 프로시저 호출입니다.

Example:

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

Please support us!