(C:\Program Files as example)
To get the number of objects (files/folders) below a folder -- also including subdirs -- for a folder:
Code: Select all
es.exe "C:\Program Files" -get-result-count
To get the number of folders below a folder -- also including subdirs -- for a folder:
Code: Select all
es.exe "C:\Program Files" folder: -get-result-count
To get the number of files below a folder -- also including subdirs -- for a folder:
Code: Select all
es.exe "C:\Program Files" file: -get-result-count
To get the number of objects (files/folders) below a folder -- without including subdirs -- for a folder:
Code: Select all
es.exe parent:"C:\Program Files" -get-result-count
To get the number of folders below a folder -- without including subdirs -- for a folder:
Code: Select all
es.exe parent:"C:\Program Files" folder: -get-result-count
To get the number of files below a folder -- without including subdirs -- for a folder:
Code: Select all
es.exe parent:"C:\Program Files" file: -get-result-count
All these queries give instantaneous result (milliseconds ...).
But I guess you asked because of Directory Opus integration?
There looping over folders by doing multiple ES calls will cause performance issues.