adspace


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


Please Help Members By Posting Answers For Below Questions

Draw Sequence Modal of DAO and Explain?

2139


How would you activate animation control?

2456


How do I make the mouse cursor invisible/visible?

1440


Specify technical & functional architecture of your last 2 projects.

2146


How do I tell when an application executed using the SHELL command is finished?

1636


With in the form we want to check all the text box control are typed or not? How?

2071


How do I force a file dialogue box to reread the currect disk?

1526


How would you attach pictures in column headers of List View Control?

2166