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

Which datatypes in Visual Basic are capable of accepting Nulls?

1 Answers  


What is the use of OLE?

0 Answers   IBM,


What is ado in vb?

0 Answers  


How can you Navigate from the DHTML application to another DHTML application? .

0 Answers  


What are the properties of datacontrol?

0 Answers  






what are the different Types of Recordsets.

0 Answers  


How to customize workgroup message?

0 Answers  


A standard exe contains a registered Active-X DLL. Now some error arise in the application but not in the standard exe , it is in the Active-X DLL. How do you find it out in which line no the error is?

1 Answers  


How would you access objects created in ActiveX Exe and ActiveX Dll

0 Answers  


what are the Differences Object and Class?

2 Answers  


What is the use of Active Control Property?

0 Answers   HCL,


Write the Steps in Creating an ActiveX Control?

0 Answers  


Categories