Hi,
I am using the wcl example to sort files in a folder by size. (this might not be the easiest way to do it)
There are a number of text files in a folder that are all named by date, but I don't want to work through them by name, I need to work through them but in order of data size with the largest file first.
Does anyone know the most efficient way of doing this?
Here is my code
This however doesn't seem to list them in size.
Thanks in advance
I am using the wcl example to sort files in a folder by size. (this might not be the easiest way to do it)
There are a number of text files in a folder that are all named by date, but I don't want to work through them by name, I need to work through them but in order of data size with the largest file first.
Does anyone know the most efficient way of doing this?
Here is my code
Sort Files:
wcl.ListFiles("C:\PULSE",True, "*.txt",True, False)
For Each item In wcl.FileListing
Dim File_Size As Int
File_Size = File.Size("",item)
fx.Msgbox(MainForm,File_Size,"")
Next
This however doesn't seem to list them in size.
Thanks in advance