I'm using a file with a huge number of SET for variables. After certain line, those set are not working. It seems there's a limit for the number of variables, is that correct? Is there any way I can avoid that limitation?
Thank you.
I'm using a file with a huge number of SET for variables. After certain line, those set are not working. It seems there's a limit for the number of variables, is that correct? Is there any way I can avoid that limitation?
Thank you.
There are two (2) limits at work here. The first is the limit on a single variable imposed by the maximum length of a cmd.exe
command line. The second is the total size of the environment which, on most current systems, is about 32 KiB. See https://blogs.msdn.microsoft.com/oldnewthing/20100203-00/?p=15083 for more details.