Welcome!

By registering with us, you'll be able to discuss, share and private message with other members of our community.

SignUp Now!

SETLOCAL and FFIND

Aug
1,941
71
Code:
     _x64: 1
   _admin: 1
_elevated: 1

TCC  31.01.22 x64   Windows 10 [Version 10.0.19045.4046]
BuildNumber  Caption                   CSDVersion  OSArchitecture  Version
19045        Microsoft Windows 10 Pro              64-bit          10.0.19045

From a stand-alone TCC console (not TCMD);
Code:
E:\...\Alias>setlocal

E:\...\Alias>memory | ffind /kvme"global|free"
            501,746 characters free
            256,123 characters free
             20,480 characters total global history

E:\...\Alias>endlocal

E:\...\Alias>memory | ffind /kvme"global|free"
            262,144 characters total global alias
            239,602 characters free
            131,072 characters total global function
            125,051 characters free
             20,480 characters total global history

Why do I get different results from running my command if SETLOCAL is active?

ADDED: Also, why are the amounts returned different?

Joe
 
I don't fully understand it but, apparently, SETLOCAL changes the use of a global list to the use of a local list and the two "total global" lines are replaced by two "total local" lines.

I can't make sense of the numbers but if you do this (below) both local and global will be reported by MEMORY.
1710090174019.png
 
Thanks for the explanation.

Indeed,
my Global lists were selected,
but not my Local lists.

1710102453024.png


Joe
 
Thanks @vefatica, I just made the changes to see the difference.

I'm still just using Global lists, not Local lists.

Joe
 

Similar threads

Back
Top