Assuming filecount is required, the following 2 results were found.
{ LV_GetText(RowText, A_EventInfo, 4) Clipboard := RowText MsgBox, 0, %RowText% } return PrepareAttachments: ; init v_FileCount := 0 v_FilesToProcessCount := 0 v_FKCountTotal := 0 v_PKCountTotal := 0 GuiControlGet, v_FolderToSearch, , MySelectedFolder...
-- to return file count in a folder ItemCount := ComObjCreate("Shell.Application").NameSpace(UserFolder).Items.Count FileCount := ComObjCreate("Scripting.FileSystemObject").GetFolder(UserFolder).Files.Count FolderCount := ItemCount - FileCount -- quick...