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 types of line styles available in Treeview Control?
Can you tell me the properties of the controls?
Explain the differences between ActiveX Dll and ActiveX Exe?
what are the Types of Resultsets?
Explain Get, Let, Set Properties?
Explain the types of Views in Listview Control.
How many types of API functions are availble in VB?
It is possible to access Text (x.txt) files? Explain.
How much gain in performance will I get if I write my number crunching routines in C instead of Visual Basic?
___ Property is used to count no. of items in a combobox.
What are the types of line styles available in Treeview Control?
How do I call a DLL?
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)