Size of the drive after excluding certain sub directories

General discussion related to "Everything".
Post Reply
hardik
Posts: 1
Joined: Mon Sep 02, 2019 4:24 pm

Size of the drive after excluding certain sub directories

Post by hardik » Mon Sep 02, 2019 4:48 pm

Consider the following scenario:
1.Assume that below are the only directories inside C drive wherein the directory structure is as follows:

C:\Program Files\...
C:\Program Files (x86)\...
C:\Windows\...
C:\Users\support\...
C:\Users\Public\...

2. Assume the size of each of the directories is as follows:

Program Files (100 bytes)
Program Files (x86) (50 bytes)
Windows (30 bytes)
Users\support (60 bytes)
Users\Public (70 bytes)

So, in this scenario, Everything Search Utility will return the size of C drive as 310 bytes. Is there a way that it can return the size of C drive as 90 bytes by excluding the directories "Program Files", "Program Files (x86)", and "Users\Public"?

Any help regarding the above will be appreciated. Also, if it is possible, what will be the ES command for the same?

Thank you for the help.

NotNull
Posts: 1393
Joined: Wed May 24, 2017 9:22 pm

Re: Size of the drive after excluding certain sub directories

Post by NotNull » Tue Sep 03, 2019 2:37 pm

This seemed like an easy question, but in fact: it's not! That's because the size shown for c:\ is the total size on disk and not the resulting size of your query (
C:\Windows\ | C:\Users\support\
or
!"c:\Program Files\" !"c:\Program Files (x86)\" !"c:\Users\Public"
)

If you have Show size in status bar enabled (under Menu:Tools > Options > General > View ), the total file/folder size will be shown in the statusbar on the right.

If you don't have Show size in status bar enabled, you can:
  • Run your search query
  • Export the results as an EFU file (Menu:File > Export)
  • Import this EFU file (Menu:File > Open File List
  • Search
    root:
  • REad the size from C:
  • Close the File List by pressing Alt-Home
There is no way - that I know of - to get ES.exe to report this information.
A -get-result-size option would help here (there is already a -get-result-count )

Post Reply