Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

VBScript and FileLen

Posted on 2002-05-16
2
Medium Priority
?
1,885 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 200 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 to Use the Help Bell

Need to boost the visibility of your question for solutions? Use the Experts Exchange Help Bell to confirm priority levels and contact subject-matter experts for question attention.  Check out this how-to article for more information.

Question has a verified solution.

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

Article by: Martin
Here are a few simple, working, games that you can use as-is or as the basis for your own games. Tic-Tac-Toe This is one of the simplest of all games.   The game allows for a choice of who goes first and keeps track of the number of wins for…
Background What I'm presenting in this article is the result of 2 conditions in my work area: We have a SQL Server production environment but no development or test environment; andWe have an MS Access front end using tables in SQL Server but we a…
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
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…

885 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