Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1919
  • Last Modified:

VBScript and FileLen

Hey all,

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

Thanks

DDS
0
dds110
Asked:
dds110
1 Solution
 
AzraSoundCommented:
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

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now