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 language is used in visual basic?

0 Answers  


What are the new events in textbox that has been included in VB6.0

1 Answers  


How would you attach an ActiveX control in Your Application?

0 Answers  


__ no of controls in form.

0 Answers  


how to get printout between two dates informations in datareport in vb6.0

1 Answers  






Is visual basic case sensitive?

0 Answers  


How do I do drag & drop between applications?

0 Answers  


What is the difference between Single and Double in VB?

4 Answers  


Types of LockEdits in DAO?

0 Answers  


What will happen if you issue a Resume statement after handling an error?

3 Answers  


How can you check whether a record is valid record or Invalid record using ADO control or Object?

0 Answers  


_____ collection in recordset used to assign a value from textbox to table columns without making abinding in datacontrol.

0 Answers  


Categories