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

What are the tools in visual basic?

0 Answers  


How would you Create a Query Builder and Explain its uses

0 Answers  


Difference between ByRef and ByVal?

1 Answers  


How can objects on different threads communicate with one another?

2 Answers  


Can you create a tabletype of recordset in Jet - connected ODBC dbengine?

0 Answers  


What are the Technologies for Accessing Database from Visual Basic?

1 Answers  


Dim x, y as integer. What is x and y data type?

8 Answers  


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

2 Answers  


what is single thread and multithread apartments model?

2 Answers   Ford,


What is the use of command Object?What are the various types of variables?

0 Answers  


What is the use of Scalewidth and ScaleHeight Proeperty?

0 Answers  


What is ActiveX Document?

0 Answers   HCL,


Categories