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
Which property of textbox cannot be changed at runtime. What is the max size of textbox?
How do I prevent multiple instances of my program?
___,__,___ are the type of combo box?
Write the steps in Creating ActiveX Dll and Active Exe?
Is it possible to set a shortcut key for label?
What are the types of Error? In which areas the Error occurs?
___ is the control used to call a windows application.
How would you navigate between one document to another document in Internet Explorer ?
When/Why should I use Option Explicit?
what is use of book mark in excel ? send answer in my id ashishpal11@rediffmail.com
which property of menu cannot be set at run time.
How do I get a bitmap picture in a field in an Access database?
Are there any examples of commercial applications built using Visual Basic?
How would you add elements in TreevieW Control?
What is Internet Explorer and its uses?