FileLen reports wrong file size

  • Thread starter Thread starter Valery B.
  • Start date Start date
V

Valery B.

1. A function starts an unknown external program.

2. The external program starts writting a file.

3. The function should report the size of the file being written by the
external program.


How to achieve the 3rd point using .net framework 2003 only?



Notes:

for a certain external program

.Net's FileLen reported file size is allways 0 until the file is
closed.

Microsoft Scripting Runtime's
FileSystemObject.GetFile(FileName).Size retports the correct file size
while it is being written.


VB
 
Please disregard this message.
A file name error was found.

Sorry for any inconvenience

VB
 
Back
Top