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 |
What are the tools in visual basic?
How would you Create a Query Builder and Explain its uses
Difference between ByRef and ByVal?
How can objects on different threads communicate with one another?
Can you create a tabletype of recordset in Jet - connected ODBC dbengine?
What are the Technologies for Accessing Database from Visual Basic?
Dim x, y as integer. What is x and y data type?
What is the difference between a Dynaset and Snapshot and how would you create one?
what is single thread and multithread apartments model?
What is the use of command Object?What are the various types of variables?
What is the use of Scalewidth and ScaleHeight Proeperty?
What is ActiveX Document?
Visual Basic (800)
C Sharp (3816)
ASP.NET (3180)
VB.NET (461)
COM+ (79)
ADO.NET (717)
IIS (369)
MTS (11)
Crystal Reports (81)
BizTalk (89)
Dot Net (2435)
Exchange Server (362)
SharePoint (720)
WCF (340)
MS Office Microsoft (6963)
LINQ Language-Integrated Query (317)
WPF (371)
TypeScript (144)
Microsoft Related AllOther (311)