Answer by
nuttree (1596)
If you create a FileSystemObject with the command: set fs = CreateObject("Scripting.FileSystemObject"), you can create a file with the command: set f=fs.GetFile(filename). Once you have a File object, you can query its properties, and one of these properties is Size. So iFileSize = f.Size would give you the file's size.