Seymour Clufley wrote:
I had a look in PureArea and found
this but that simply loops through all the files with NextDirectoryEntry
Actually, that's pretty fast (once you delete the recursion into subfolders of it).
Or maybe populate an (invisible) ExplorerListGadget() with your path and count its files:
Code:
If OpenWindow(0,0,0,400,400,"",#PB_Window_SystemMenu)
ExplorerListGadget(0,0,0,400,400,"C:\Windows\",#PB_Explorer_NoFolders)
SetWindowTitle(0,Str(CountGadgetItems(0)-1))
Repeat : Until WaitWindowEvent()=#PB_Event_CloseWindow
EndIf