Click to See Complete Forum and Search --> : File size
Janitor
Jan 11th, 2000, 05:51 AM
How can I determine the size of a file?
ChrisJackson
Jan 11th, 2000, 06:03 AM
Hi Janitor.
Here's how to do it:
dim stFileSize as string
stFileSize = FileLen("c:\windows\desktop\yourfile.txt")
All the best.
Chris
LG
Jan 11th, 2000, 06:03 AM
Hi, Janitor.
Dim MySize
MySize = FileLen("TESTFILE") ' Returns file length (bytes).
Larisa
jkurpias
Jan 11th, 2000, 06:04 AM
Function FileLen(PathName As String) As Long Member of VBA.FileSystem
Returns the length of a file in bytes
vbforums.com
Copyright Internet.com Inc., All Rights Reserved.