VBScript and FileLen

Hey all,

Is there a way to get the FileLength (file size) in vbscript or a DOS batch file???

Thanks

DDS
LVL 8
dds110Asked:
Who is Participating?
 
AzraSoundConnect With a Mentor Commented:
VBScript would use the FileSystemObject, e.g.,


Dim fso, f
Set fso = CreateObject("Scripting.FileSystemObject")
Set f = so.GetFile(strFilePath)
MsgBox f.Size
0
 
dds110Author Commented:
Worked Great.  Look for new question called  Using API function in VBScript
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.