FileLen Function

ํŒŒ์ผ์˜ ๊ธธ์ด๋ฅผ ๋ฐ”์ดํŠธ๋กœ ๊ตฌํ•ฉ๋‹ˆ๋‹ค.

๊ตฌ๋ฌธ:


FileLen (Text As String)

๋ฐ˜ํ™˜ ๊ฐ’:

Long

๋งค๊ฐœ ๋ณ€์ˆ˜:

Text: ๋ช…ํ™•ํ•œ ํŒŒ์ผ ์ง€์ •์„ ํฌํ•จํ•˜๋Š” ์ž„์˜์˜ ๋ฌธ์ž์—ด ์‹์ž…๋‹ˆ๋‹ค. URL ํ‘œ๊ธฐ๋ฒ•์„ ์‚ฌ์šฉํ•  ์ˆ˜๋„ ์žˆ์Šต๋‹ˆ๋‹ค.

์ด ํ•จ์ˆ˜๋Š” ํŒŒ์ผ์˜ ๊ธธ์ด๋ฅผ ๊ตฌํ•ฉ๋‹ˆ๋‹ค. ์—ด๋ฆฐ ํŒŒ์ผ์— ๋Œ€ํ•ด ํ˜ธ์ถœ๋˜๋ฉด FileLen ํ•จ์ˆ˜๋Š” ํŒŒ์ผ์„ ์—ด๊ธฐ ์ „์˜ ํŒŒ์ผ ๊ธธ์ด๋ฅผ ๊ตฌํ•ฉ๋‹ˆ๋‹ค. ์—ด๋ฆฐ ํŒŒ์ผ์˜ ํ˜„์žฌ ํŒŒ์ผ ๊ธธ์ด๋ฅผ ํ™•์ธํ•˜๋ ค๋ฉด Lof ํ•จ์ˆ˜๋ฅผ ์‚ฌ์šฉํ•ฉ๋‹ˆ๋‹ค.

Error codes:

5 ์ž˜๋ชป๋œ ํ”„๋กœ์‹œ์ € ํ˜ธ์ถœ์ž…๋‹ˆ๋‹ค.

์˜ˆ:


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

Please support us!