Try this...
Code:MsgBox(ListBox1.Items.Cast(Of String).Sum(Function(s) (From strFile In My.Computer.FileSystem.GetFiles(s, FileIO.SearchOption.SearchAllSubDirectories) Select New System.IO.FileInfo(strFile).Length).Sum()))
|
Results 1 to 11 of 11
Threaded View
Tags for this Thread |
Click Here to Expand Forum to Full Width |