How to find size of the file. Which method or function is
used to occomplish this?
Answer / sundarraj_v83
Adding reference (Microsoft Scripting Runtime) scrrun.dll
into the vb project and using function Getfile(file
path).size,
Example code
After Adding reference into VB Project,
Dim fso as filesystemobject
set fso = new filesystemobject
msgbox fso.getfile("D:\hello.txt").size
it will display the message for size of hello.txt file
Is This Answer Correct ? | 0 Yes | 0 No |
what are the Differences between Class Module and Standard Module?
Difference between DDE and OLE.
How come I get a "No Current Record" error when I use a a Data Control on an empty table?
Wat is Apartment Model?
Is it possible to Manipulate data through flexgrid? Explain.
What is the difference between a Property Let and Property Set procedure?
What does Query_unload event do in VB? Why we need Form _unload event?
What do you know about chaining views.
When/Why should I use Option Explicit?
How would you add elements in TreevieW Control.
Why API functions are Required?
what is Option Implicit
12 Answers Cognizant, Primus Global,