Solved

VBScript and FileLen

Posted on 2002-05-16
2
1,757 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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

There are many ways to remove duplicate entries in an SQL or Access database. Most make you temporarily insert an ID field, make a temp table and copy data back and forth, and/or are slow. Here is an easy way in VB6 using ADO to remove duplicate row…
Introduction While answering a recent question about filtering a custom class collection, I realized that this could be accomplished with very little code by using the ScriptControl (SC) library.  This article will introduce you to the SC library a…
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
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…

747 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

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now