calc size with or without Everythings command?

English support forum

Moderators: Hacker, petermad, Stefan2, white

Post Reply
User avatar
dindog
Senior Member
Senior Member
Posts: 316
Joined: 2010-10-18, 07:41 UTC

calc size with or without Everythings command?

Post by *dindog »

Is there cmd A and cmd B, cmd A caculates dirs size with Everything while cmd B doesn't?

I don't turn on Everything all the time, would like to have two command to switch between using Everything or not. If the answer is No, I'll write a feature request.
User avatar
mhe
Junior Member
Junior Member
Posts: 71
Joined: 2003-02-16, 15:09 UTC

Re: calc size with or without Everythings command?

Post by *mhe »

This is something i'd want aswell, right now instead i just use a custom view mode with the auto run command *cm_CountDirContent
But that has it's own problem, because it executes on dir change only, and when deleting/creating dir's, the sizes disappear so you have to go in/out of a dir to get a new calculation, annoying.
User avatar
tuska
Power Member
Power Member
Posts: 4049
Joined: 2007-05-21, 12:17 UTC

Re: calc size with or without Everythings command?

Post by *tuska »

dindog wrote: 2023-08-10, 06:23 UTC Is there cmd A and cmd B, cmd A caculates dirs size with Everything while cmd B doesn't?
Configuration > Options... > Operation > Calculate space occupied by subdirectories

Code: Select all

☑️ 'Everything'		Manual: Alt+Shift+Enter
🔲 'Everything'		Manual: Alt+Shift+Enter
User avatar
mhe
Junior Member
Junior Member
Posts: 71
Joined: 2003-02-16, 15:09 UTC

Re: calc size with or without Everythings command?

Post by *mhe »

What i mean is a command to enable "automatic only with everything" and another that sets it to "manual".

Using manual alt+shift+enter means you have to do it every dir change. When i'm hunting down large folders to delete or for whatever reason i need the feature, i usually need it multiple times, with dir changes, and then i'd like to set the feature to manual.
User avatar
tuska
Power Member
Power Member
Posts: 4049
Joined: 2007-05-21, 12:17 UTC

Re: calc size with or without Everythings command?

Post by *tuska »

mhe wrote: 2023-08-10, 09:41 UTC This is something i'd want aswell, right now instead i just use a custom view mode with the auto run command *cm_CountDirContent
But that has it's own problem, because it executes on dir change only, and when deleting/creating dir's,
the sizes disappear so you have to go in/out of a dir to get a new calculation, annoying.
This button should help.

Code: Select all

TOTALCMD#BAR#DATA
cm_RereadSource 2

wcmicons.dll,86
cm_rereadsource 2 <-- re-applies automatic View mode change to current directory|cm_rereadsource 1 forces refresh even if nothing has changed in that directory,|e.g. to re-load icons and overlays.|cm_rereadsource 3 also forces a refresh if nothing has changed

0
-1
Note the tooltip...
User avatar
tuska
Power Member
Power Member
Posts: 4049
Joined: 2007-05-21, 12:17 UTC

Re: calc size with or without Everythings command?

Post by *tuska »

2mhe
Do you have

Code: Select all

*cm_CountDirContent|cm_RereadSource 2
in your View mode?
F1-Help, Configuration - View Mode - Auto-run commands wrote:To run commands when a view mode is left, put them behind | (vertical line).
User avatar
mhe
Junior Member
Junior Member
Posts: 71
Joined: 2003-02-16, 15:09 UTC

Re: calc size with or without Everythings command?

Post by *mhe »

Doesn't seem to change anything. When dir sizes are shown, try creating a new folder, or deleting a folder, now the sizes disappear, and neither cm_RereadSource 1 2 or 3 does anything, also *cm_CountDirContent|cm_RereadSource 2 doesn't seem to do anything more than *cm_CountDirContent does alone.
User avatar
petermad
Power Member
Power Member
Posts: 16030
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Re: calc size with or without Everythings command?

Post by *petermad »

If I do not enable 'Everything''s option to "Start Everything at system startup", and I do not keep Everything.exe in the TC program folder, and I do not have a Everything= entry in the [Configuration] section of my wincmd.ini file - then using TC's option "Automatic, only with Everything" is ignored, and manual dirsize counting is enabled.

But if TC can find Everything.exe either because it is placed in TC's program folder, or the location is given with the Everything= entry in wincmd.ini, then TC will automatically start 'Everything' if "Automatic, only with Everything" is enabled.
Help wrote:Everything=Everything.exe -startup Set location of Everything.exe to run when user checks "Everything" checkbox while Everything isn't running yet. Without this option, Everything.exe will be searched in the Total Commander folder. Note: When specifying parameters pointing to a file, like -config, you need to specify the name including full path. Otherwise Everything will not find the file.
So just make it impossible for TC to find and start 'Everything' (by following the first paragraph in this post) - then the Automatic dirsize calculation will be ignored, untill you manually start 'Everything'
License #524 (1994)
Danish Total Commander Translator
TC 11.51 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1391a
TC 3.60b4 on Android 6, 13, 14
TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
User avatar
mhe
Junior Member
Junior Member
Posts: 71
Joined: 2003-02-16, 15:09 UTC

Re: calc size with or without Everythings command?

Post by *mhe »

petermad, that's one hell of a workaround. Tried it, however, it seems like TC has to be restarted to start showing dir sizes automatically again, defeats the purpose.
If i'm open to that level of workaround then i might as well have a script that toggles between GetDirSize=0 and GetDirSize=3, and then restarts TC, but that is too outlandish for me, i'd rather just go in/out of a folder to get it to "refresh", and keep using a custom view mode.
User avatar
tuska
Power Member
Power Member
Posts: 4049
Joined: 2007-05-21, 12:17 UTC

Re: calc size with or without Everythings command?

Post by *tuska »

mhe wrote: 2023-08-10, 11:26 UTC Doesn't seem to change anything. When dir sizes are shown, try creating a new folder, or deleting a folder, now the sizes disappear, and neither cm_RereadSource 1 2 or 3 does anything, also *cm_CountDirContent|cm_RereadSource 2 doesn't seem to do anything more than *cm_CountDirContent does alone.
When a folder is deleted or created, then the file sizes are also deleted from other folders in this directory. I agree with this.
With the command: cm_RereadSource 2 (pls see button) you can restore/refresh the view with file sizes.

Code: Select all

|cm_RereadSource 2
applies if it hits another, the next View mode.
This setting can be helpful.
User avatar
mhe
Junior Member
Junior Member
Posts: 71
Joined: 2003-02-16, 15:09 UTC

Re: calc size with or without Everythings command?

Post by *mhe »

I must be doing something wrong because once i create/delete a dir, all dir sizes are gone and they are not back until i change view mode or go in/out of a dir, the cm_RereadSource 2 does nothing.
Are you sure you have it set to "manual: alt+shift+enter"?
User avatar
tuska
Power Member
Power Member
Posts: 4049
Joined: 2007-05-21, 12:17 UTC

Re: calc size with or without Everythings command?

Post by *tuska »

mhe wrote: 2023-08-10, 13:10 UTC ... the cm_RereadSource 2 does nothing.
The button with command cm_RereadSource 2 works properly here, i.e.
"re-applies automatic View mode change to current directory"

Did you make sure that the correct window has the focus when you click on the button?

Example:
Move a folder from the right to the left window - focus is in the right window and you press the button.
In the right window I have not defined a view mode for this path. Nothing happens in the left window.
mhe wrote: 2023-08-10, 13:10 UTC Are you sure you have it set to "manual: alt+shift+enter"?
Yes, I have this setting and 'Everything' is totally closed (no icon in systray).

Although I start 'Everything' automatically every day, I have this setting.
Despite a current PC, the screen is otherwise a bit sluggish.
User avatar
petermad
Power Member
Power Member
Posts: 16030
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Re: calc size with or without Everythings command?

Post by *petermad »

mhe wrote: 2023-08-10, 12:38 UTC petermad, that's one hell of a workaround. Tried it, however, it seems like TC has to be restarted to start showing dir sizes automatically again, defeats the purpose.
Make a button with the command cm_Exit 13 then TC will restart in the state it was in.
License #524 (1994)
Danish Total Commander Translator
TC 11.51 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1391a
TC 3.60b4 on Android 6, 13, 14
TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
Post Reply