WinBatch Tech Support Home

Database Search

If you can't find the information using the categories below, post a question over in our WinBatch Tech Support Forum.

TechHome

Functions

Can't find the information you are looking for here? Then leave a message over on our WinBatch Tech Support Forum.

FileInfoToArray Total File Size Problem

 Keywords: FileInfoToArray Total File Size Zero 0

Question:

WB2011A, The documentation for FileInfoToArray says ... Header row 0 / Column 1 = total size of files returned

The array has files, but total size shows zero.

arrFileInfo = FileInfoToArray(filemask)
returnszero = arrFileInfo[0,1]
What could it be?

Answer:

Interesting, I am able to reproduce using WinBatch 2011A. After consulting with the developers it looks like a bug was introduced when the huge number flag was added. Use flag value of 1, to workaround the issue, until it can be addressed in a future release.
arrFileInfo = FileInfoToArray(filemask,1)
totalsz = arrFileInfo[0,1]

Article ID:   W17895
Filename:   FileInfoToArray Total File Size Problem.txt
File Created: 2011:08:30:10:12:48
Last Updated: 2011:08:30:10:12:48