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

Answer Posted / 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       View All Answers


Please Help Members By Posting Answers For Below Questions

Where can I get good up-to-date information about VB?

913


How to use hyperlink?

592


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

1501


What is file in vb?

505


What do you know about chaining views.

532






Types of LockEdits in RDO.

1584


How many objects resides in ADO ?

1455


To validate a range of values for a property whenever the property values changes,which type of property procedure you use?

1440


What is ActiveX? Explain.

1457


Binary Access-method isused to access file in which manner?

1423


How would you navigate between one document to another document

1175


what are the Differences between Recordset and Resultsets?

2008


___ property used to add a menus at runtime.

1238


What is the Windows API?

1018


what is the Difference between Tabletype and Snapshot?

1532