How to find size of the file. Which method or function is
used to occomplish this?



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

Post New Answer

More Visual Basic Interview Questions

what are the Differences between Class Module and Standard Module?

1 Answers  


Difference between DDE and OLE.

0 Answers  


How come I get a "No Current Record" error when I use a a Data Control on an empty table?

0 Answers  


Wat is Apartment Model?

3 Answers  


Is it possible to Manipulate data through flexgrid? Explain.

0 Answers  






What is the difference between a Property Let and Property Set procedure?

1 Answers  


What does Query_unload event do in VB? Why we need Form _unload event?

3 Answers  


What do you know about chaining views.

0 Answers  


When/Why should I use Option Explicit?

0 Answers  


How would you add elements in TreevieW Control.

0 Answers  


Why API functions are Required?

0 Answers   L&T, Wipro,


what is Option Implicit

12 Answers   Cognizant, Primus Global,


Categories