Command Prompt Stack Limits Under Windows Vista

It seems that the command prompt stack limits has changed under Windows Vista (at least for Beta 2 build 5384). And it seems that the stack limits in the command shell under Windows Vista is smaller than that in Windows XP. To see this, create a batch file, say test.cmd and add one line to call itself recursively:

 

call test.cmd

When you run it under Windows XP, you will get a “batch recursion exceeds stack limits” exception as shown blow:

 

xpcmd.jpg

 

When you run the same script under Windows Vista (Beta 2, Build 5384), you get the following:

vistacmd.jpg

 

As you can see the limit dropped from 1240 to 722. I am not sure what this means, perhaps it has something to do with Windows Vista’s enhanced application security features.

 

 

Be Sociable, Share!

Leave a Reply