EverythingFolderSize (Use Everything to calculate folder sizes)

The last issue is the easiest: to launch es.exe from a PS command line, you need to use

Start-Process -FilePath "path\to\es.exe"

The internal wiring seems to be ok. We can dig deeper if you think there's something not quite right yet, I would just need a bit more info.


To completely replace the size column, do the modifications described here:

https://resource.dopus.com/t/everythingfoldersize-use-everything-to-calculate-folder-sizes/44281/56


To color a column, go to Preferences / Display / Fields

Thx @lxp - if I may address the color issue first -

I do see my light green configuration there Thanks!, but when I go Prefs > Display > Fields,
I don't see any entry for the EFS column or ColumnEverythingFolderSize or any other descriptor -
maybe I need to log off to fold in changes?

The bad news:

There's no way to change the text color of a script column currently (other than by changing the default for all columns).

The good news:

We've added that to our to-do list.

https://resource.dopus.com/t/can-you-set-the-color-of-script-columns/36372

Thx, good to know about the colors - and I've added a note about that path to my 68 page long "dOpus config Notes" file :slight_smile:

Well, in the meantime I rebooted, and now the EFS column is blank again! :crazy_face:

If the problem persists, try this version that provides more debug info:

https://resource.dopus.com/t/everythingfoldersize-use-everything-to-calculate-folder-sizes/44281/47

Would you kindly instruct me how-where to 'run' that script for debugging?

Also if it matters - I did uncomment the line DOpus.Output(cmdLine) as you instructed in post

EverythingFolderSize (Use Everything to calculate folder sizes) - #19 by lxp


Also - I just rebooted again and noted the red exclamation SCRIPT error icon in dOpus status bar -
here is the output >

Blockquote
4tb.Py_R" /ad
8/20/2023 3:47 AM UpdateEverythingFolderSize: Error at line 40, position 5
8/20/2023 3:47 AM UpdateEverythingFolderSize: Error 0x800700c1
8/20/2023 3:47 AM UpdateEverythingFolderSize: "C:\Program Files\Everything 1.5a\es.exe" -size -no-header -export-csv "C:\Users\d\AppData\Local\Temp\dop202308200747250405.tmp" -parent "O:-5tb.SQL" /ad
8/20/2023 3:47 AM UpdateEverythingFolderSize: Error at line 40, position 5
8/20/2023 3:47 AM UpdateEverythingFolderSize: Error 0x800700c1
8/20/2023 3:47 AM UpdateEverythingFolderSize: "C:\Program Files\Everything 1.5a\es.exe" -size -no-header -export-csv "C:\Users\d\AppData\Local\Temp\dop202308200747330492.tmp" -parent "J:" /ad
8/20/2023 3:47 AM UpdateEverythingFolderSize: Error at line 40, position 5
8/20/2023 3:47 AM UpdateEverythingFolderSize: Error 0x800700c1
8/20/2023 3:47 AM UpdateEverythingFolderSize: "C:\Program Files\Everything 1.5a\es.exe" -size -no-header -export-csv "C:\Users\d\AppData\Local\Temp\dop202308200747400861.tmp" -parent "O:-5tb.SQL" /ad
8/20/2023 3:47 AM UpdateEverythingFolderSize: Error at line 40, position 5
8/20/2023 3:47 AM UpdateEverythingFolderSize: Error 0x800700c1
8/20/2023 3:52 AM UpdateEverythingFolderSize: "C:\Program Files\Everything 1.5a\es.exe" -size -no-header -export-csv "C:\Users\d\AppData\Local\Temp\dop202308200752160622.tmp" -parent "O:-5tb.SQL" /ad
8/20/2023 3:52 AM UpdateEverythingFolderSize: Error at line 40, position 5
8/20/2023 3:52 AM UpdateEverythingFolderSize: Error 0x800700c1
8/20/2023 6:05 AM UpdateEverythingFolderSize: "C:\Program Files\Everything 1.5a\es.exe" -size -no-header -export-csv "C:\Users\d\AppData\Local\Temp\dop202308201005260960.tmp" -parent "N:-4tb.Py_R" /ad
8/20/2023 6:05 AM UpdateEverythingFolderSize: Error at line 40, position 5
8/20/2023 6:05 AM UpdateEverythingFolderSize: Error 0x800700c1

Error 0x800700c1 points to some Windows problems. Could that be the case?

Try disabling "Run Everything as Admin". Maybe that stops Opus from getting the info from Everything.

The rest looks good :slight_smile:

Nope - even after rebooting it's still blank.

I'll ask again b/c I'm unsure - do I need to make a button w/ script and run it so that dOpus internally stores the script in some way that's not happening for me at present?

I'm also thinking to post on voidtools forum and ask Mr. Carpenter if he might help.

The Opus side looks fine. We are getting the error while asking es.exe to send us the size info. Something's wrong with Everything or the OS. Unfortunately, I am running out of ideas about where to look.... Re-install Everything? Clean the /temp? Run Windows-Update? If you ask in the Voidtools forum, include the error number.

Older versions of es.exe also don't return results.

Maybe try your portable installation. I updated the main post with some info on how to do it.

Thank you sir - I may try that later tonite - I've had a response from NotNull on void forum,
and I'm awaiting his next reply to my execution of his instructions.

It'll be handy to have that portable info -
yesterday I thought I'd have better chances for success if I went the regular install route.

It's working now - again -

Incredulous - I go back to look in the "C:\Program Files\Everything 1.5a" folder,
and suddenly I notice es.exe shows a Size of -0- ! How the heck did THAT happen?

Regardless, I copied over the downloaded es.exe to replace it, and F5 and BANG it works again! PTL!

Now there's a slight different problem - a better one I think - -
Now when I run the 2 commands, here's the output :

C:\Program Files\Everything 1.5a>es.exe -instance 1.5a everything ext:exe
Error 8: Everything IPC window not found. Please make sure Everything is running.

C:\Program Files\Everything 1.5a>es.exe everything ext:ini
C:\Program Files\Everything 1.5a\Everything-1.5a.ini
C:\Users\d\AppData\Roaming\Everything\Everything-1.5a.ini
D:\z...sager!...Everything-1.5.0.1304a.x64.p\Everything-1.5a.ini

C:\Program Files\Everything 1.5a>

The D:\z...sager\ listing is my portable - which is disabled in favor of the installed version to make this work w/ dOpus.

@lxp Why do we need to place es.exe with Everything.exe? Is there a way to place it a separate directory that other computers can reference? I am trying to keep DOPUS related goodies in a common place, so that I only need to update them once. That way, I can export configurations and know that paths will all point to the same place.

Edit script.

Continuing on the "now mostly Happy journey"!

I went into Folder Options and set the EFS column as Default while discarding < Size (auto) > ,
and if I simply click a folder to go deeper in the dir structure, then EFS continues to give Folder sizes.

However, if I use a middle mouse click to open a folder in a New Tab,
I have to F5 to make it show in this deeper directory opened in a New Tab.

I also implemented the "also display the size for files" substitute script that was so kindly provided -
and it works fine. Interestingly - though folder sizes don't immediately display
when, as described above, a mouse click is used to open it in a New Tab -
file sizes DO display immediately.

So, at the risk of greedy - is there a way to get folder sizes to also auto-populate
even if a directory is opened in a New Tab?

Thanks very much for all this contribution!!

I guess so es.exe knows to which Everything.exe it is supposed to talk. This is just how Voidtools has designed it.

Is there a way to place it a separate directory that other computers can reference?

You could try placing a link to a central es.exe into the folder (Copy MAKELINK). Not sure if this works.

I am trying to keep DOPUS related goodies in a common place, so that I only need to update them once.

Try a portable installation, they seem to run just fine. It could even live inside the Opus folders, so it's included in config backups and USB exports. The Everything.db will become big, though, so that might be impractical.

Interesting, something I never noticed. Maybe I should get a three-button mouse one of these days :wink:

I added a few things to the script to cover this scenario. You can be the guinea pig and try it out. I'd be interested if you run into any performance issues like delayed tab openings.

EventUpdateEverythingFolderSize.js.txt (2023-08-21)

1st test -

the tab opened immediately,
but it took 17 seconds to display anything in the new tab - even file/folder names,
and .... the EFS column was - blank -

Is there a way to make the "EFS" column show in kB instead auto?

1 Like