I am trying to retrieve the size of each folder in KB and MB and for it i made this script
Code: Select all
SetBatchLines, -1 ; Make the operation run at maximum speed.
Gui, Add, ListView, Grid r40 w1000, Name|KB|MB|
Loop, D:\*.*,1
{
dd.= A_LoopFileFullPath "`n"
LV_Add("", A_LoopFileName, FolderSizeKB)
}
Loop, Parse, dd, `n
{
FolderSizeKB = 0
Loop, Files, %A_LoopField%\*.*, R
FolderSizeKB += %A_LoopFileSizeKB%
LV_Add("", "", FolderSizeKB)
}
gui, show
In the above image you can see that the size of file/folder are not showing in the front of file/folder, while it is showing beneath file/folder. I want that all the rows of column KB should be shifted in front of column NAME. Please tell me how to solve this problem.
Thanks a lot..