Solved

VBScript and FileLen

Posted on 2002-05-16
2
1,776 Views
Last Modified: 2012-06-22
Hey all,

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

Thanks

DDS
0
Comment
Question by:dds110
2 Comments
 
LVL 28

Accepted Solution

by:
AzraSound earned 50 total points
ID: 7014043
VBScript would use the FileSystemObject, e.g.,


Dim fso, f
Set fso = CreateObject("Scripting.FileSystemObject")
Set f = so.GetFile(strFilePath)
MsgBox f.Size
0
 
LVL 8

Author Comment

by:dds110
ID: 7014171
Worked Great.  Look for new question called  Using API function in VBScript
0

Featured Post

Courses: Start Training Online With Pros, Today

Brush up on the basics or master the advanced techniques required to earn essential industry certifications, with Courses. Enroll in a course and start learning today. Training topics range from Android App Dev to the Xen Virtualization Platform.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

When trying to find the cause of a problem in VBA or VB6 it's often valuable to know what procedures were executed prior to the error. You can use the Call Stack for that but it is often inadequate because it may show procedures you aren't intereste…
You can of course define an array to hold data that is of a particular type like an array of Strings to hold customer names or an array of Doubles to hold customer sales, but what do you do if you want to coordinate that data? This article describes…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…

776 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question