FileLen Function

āļœāˇœāļąāˇ”āˇ€āļš āˇ€āˇ’āˇāˇāļŊāļ­āˇŠāˇ€āļē āļļāļēāˇ’āļ§āˇŠ āˇ€āļŊāˇ’āļąāˇŠ āļ¯āļšāˇŠāˇ€āļēāˇ’.

āļšāˇāļģāļš āļģāˇ“āļ­āˇ’āļē:


FileLen (Text As String)

āļ†āļ´āˇƒāˇ” āļŊāļļāˇāļ¯āˇ™āļą āļ…āļœāļē:

Long

āļ´āļģāˇāļ¸āˇ’āļ­āˇ“āļąāˇŠ:

File: āļąāˇ’āˇāˇŠāˇ€āļ­ āļœāˇœāļąāˇ” āļ´āˇ’āļģāˇ’āˇ€āˇ’āļ­āļģāļēāļšāˇŠ āļ‡āļ­āˇ’ āļ•āļąāˇ‘āļ¸ āļ­āļąāˇŠāļ­āˇ” āļ´āˇŠâ€āļģāļšāˇāˇāļąāļēāļšāˇŠ. āļ”āļļāļ§ 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 Invalid procedure call

āļ‹āļ¯āˇāˇ„āļģāļĢāļē:


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

Please support us!