Forum Discussion
AlexeyKolosov
Staff
16 years agoHi Herman,
We've reproduced this incorrect behavior, and we'll fix it. The error occurred when there were no files within the FolderName folder.
If this is your case, modify your script so that there're the following lines instead of just one "ActualNo := aqFileSystem.GetFolderInfo(FolderName).Files.Count;" line:
try
ActualNo := aqFileSystem.GetFolderInfo('c:\1').Files.Count;
except
ActualNo := 0;
end;