Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


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

How about Access 2.0 compatibility?

0 Answers  


which property of menu cannot be set at run time.

0 Answers  


Explain about literals?

0 Answers  


Why do I get "object not an array" when I try reference the fields of a global object variable which I have set to a table?

0 Answers  


How can I create a VBX?

0 Answers  


Explain about manipulating the recordset object

0 Answers  


Difference between Linked Object and Embedded Object?

0 Answers  


What is ActiveX Dll and ActiveX Exe?

0 Answers   TCS,


What is the difference between a Dynaset and Snapshot and how would you create one?

2 Answers  


Explain Get, Let, Set Properties?

5 Answers  


Difference between Tabletype and Snapshot?

0 Answers  


What does DoEvents do?

2 Answers  


Categories