Page 1 of 1
Posted: Thu Oct 22, 2009 8:43 am
by chulett
Not as far as I know. You'd need to look up the current name (with a wildcard 'dir' perhaps) and then open it directly once you know the name.
Posted: Thu Oct 22, 2009 4:06 pm
by ray.wurlod
Yes you can.
Open the file with OpenSeq then use the Status statement on the file variable. Field #6 of the dynamic array returned by Status contains the file size.
Code: Select all
OpenSeq filepath To file.fvar
Then
Status FileInfo From file.fvar
Then
FileSize = FileInfo<6,1,1>
End
End
Posted: Thu Oct 22, 2009 5:14 pm
by chulett
The part I was addressing was the 'using a wildcard on the file name' part. I don't believe that OpenSeq would support wildcards... or does it?

Posted: Thu Oct 22, 2009 5:41 pm
by ray.wurlod
No, but... Yeah, but...
Your routine could process the wildcard and check the size of each file in turn. Invoke ls through DSExecute, for example.
Posted: Thu Oct 22, 2009 6:02 pm
by chulett
OK, then basically what I posted. (no pun intended)