LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How can LabView's file size vi with I64 still cannot read file size larger than 4.2GB

I am trying to read file sizes using the get file/directory info vi but got incorrect file sizes if the files are larger than 4.2-4.3 GB.  I am using LabView 8.2 and Windows XP. I wonder anyone has seen the same problem?
 
Regards,
Bryan
0 Kudos
Message 1 of 5
(3,064 Views)
This seems to be a bug in 8.20 and lower. It works fine in 8.2.1. 🙂
 
 
 

406GLS7U

Fixed an issue where the File/Directory Info function returns an incorrect size for files larger than 4 GB.

 
 
0 Kudos
Message 2 of 5
(3,062 Views)
Thanks Altenbach, looks like we need to upgrade LV again.
0 Kudos
Message 3 of 5
(3,054 Views)
Since there is this bug preventing us to get correct file size on files larger than 4GB with LabVIEW 8.20, I wonder if anyone has built a vi to call the GetFileSizeEx function with windows user32.dll call? Thanks in advance if you could post.
0 Kudos
Message 4 of 5
(3,042 Views)
GetFileSizeEx is a function in Kernel32.dll instead of user32.dll. Sorry for the mistake.
0 Kudos
Message 5 of 5
(3,038 Views)