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 is the use of Imagelist Controls ?

1 Answers  


What is the use of ActiveX Documents?

1 Answers  


What is the difference between procedure and functions in VB?

15 Answers   Infrasoft,


what is the Difference between listbox and combo box?

5 Answers   TCS,


What is DBSqlPassThrough?

1 Answers  


Difference between ByRef and ByVal?

1 Answers  


How to get Cursor position using API?

2 Answers  


What is the use of Scalewidth and ScaleHeight Proeperty?

1 Answers  


What is the difference between ANSI and UNICODE strings when passed as arguments to a DLL?

3 Answers  


what are the Types of LockEdits in RDO?

1 Answers  


What is ActiveX? Explain.

1 Answers  


What is the use of Visual Basic Document file?

1 Answers  


Categories