Page 1 of 1

SOLVED-'Maximum setlocal recursion level reached'

Posted: 28 Nov 2014 20:01
by Xboxer
Received this error msg today while working on a batch file.what gives with this? http://postimg.org/image/7vdem6p7l/

Edit: Found my answer (Thanks to dbenham) over here ==> http://stackoverflow.com/questions/1191 ... sing-menus
also was running all WMIc commands with the file name the same, once I renamed my batch file, problem solved..
bob :D

Re: 'Maximum setlocal recursion level reached'

Posted: 28 Nov 2014 21:22
by Squashman
I wish I was omniscient. Until that day most of us will need to see the code.

Re: 'Maximum setlocal recursion level reached'

Posted: 29 Nov 2014 03:45
by npocmaka_
maximum level of setlocal is 32 (http://ss64.org/viewtopic.php?id=1778)
check if you are setting setlocal in loop without using endlocal.