static Sum, List static CR = esc(?+\n+, ?+\+) local Str, Size if(not arg(1)) do Str = "Total size: " ++ Sum ++ " bytes = " ++ int64.divide(Sum, 1000) Str = Str ++ " kbytes = " ++ int64.divide(Sum, 1000000) ++ " Mbytes" messagebox("ok information", List, Str) clip.set(Sum) Sum = 0 List = "" quit endif local fh = file.open(arg(1), "r") if(fh > 0) do for(not(file.eof(fh))) Str = file.readstring(fh) if(Str != 0) do sFileName = Str if(file.isfolder(sFileName)) do Size = miscplugin.fileinfo("foldersize") List = List ++ " " else Size = file.size(sFileName) List = List ++ repeat(" ", 11) endif List = List ++ sFileName ++ ", " ++ Size ++ " bytes" ++ CR Sum = ifelse(Sum, int64.Add(Sum, Size), Size) endif endfor else messagebox("ok error", "File not opened", "FILE plugin error") quit endif file.close(fh)