Greetings.
I would like to find the best way (if possible, in a single command) to obtain via es.exe, from a list of items (files and folders, omit the files), a text file with the following data:
- Filecount (non-recursive)
- Dircount (non-recursive)
- Total Filecount
- Total Dircount
Note that these items do not necessarily have the same parent.
Ideally, it should be possible to obtain all values by running es.exe only once.
The returned txt file would contain the full names of the folders and the required values.
Any help?
Regards.
Help with es.exe command to get file and dir count
Re: Help with es.exe command to get file and dir count
There are options. However you need to be more specific ....
or:
And what would the desired output look like EXACTLY?
What would that list look like?
Code: Select all
Windows
notepad.exe
Code: Select all
C:\Windows
C:\Windows\notepad.exe
And what would the desired output look like EXACTLY?
Re: Help with es.exe command to get file and dir count
Thanks for reply.
Omit the headings, and the files if possible.
Is a list of fullpaths, like this:What would that list look like?
Code: Select all
C:\Windows
C:\Windows\notepad.exe
i would like to look like this:what would the desired output look like EXACTLY
Code: Select all
;Fullpath filecount dircount filecounttotal dircounttotal
C:\Windows 1000 1000 2500 2500
C:\Windows\notepad.exe 0 0 0 0
Re: Help with es.exe command to get file and dir count
You would have to write a script to accomplish this..
You can call ES to get the filecount, dircount, filecounttotal and dircounttotal:
filecount:
dircount:
filecounttotal:
dircounttotal:
The above will only work for folders, so you would need to check if the filename is a file or folder before calling es..
You can call ES to get the filecount, dircount, filecounttotal and dircounttotal:
filecount:
es.exe -get-result-count file:parent:c:\windows
dircount:
es.exe -get-result-count folder:parent:c:\windows
filecounttotal:
es.exe -get-result-count file:ancestor:c:\windows
dircounttotal:
es.exe -get-result-count folder:ancestor:c:\windows
The above will only work for folders, so you would need to check if the filename is a file or folder before calling es..
Re: Help with es.exe command to get file and dir count
I see, and that would mean running es.exe a lot of times (4 times for each folder).
Could you please consider to add a new command to Everything.exe (or es.exe), that allows exporting results along with column values? Among other to let you set a search?
For example, if I combine filelist: with columns: and a new argument (/export) to get the results in a text file.
I bet that would be extremely helpful for a lot of folks!
Could you please consider to add a new command to Everything.exe (or es.exe), that allows exporting results along with column values? Among other to let you set a search?
For example, if I combine filelist: with columns: and a new argument (/export) to get the results in a text file.
I bet that would be extremely helpful for a lot of folks!