JSI Tip 7565. What are the string length limitation in CMD.exe?

The following limitations apply to the command line, environment variables, including those that are inherited by other processes, such as PATH, and all environment variable expansions:



  Operating System  


  Characters  


     Windows NT 4.0


     2047


     Windows 2000


     2047


     Windows XP


     8191


     Windows Server 2003


     8191


     Future Plans


     ?????

NOTE: Even though the Win32 limitation for environment variables is 32,767, CMD.exe ignores any environment variables that are inherited from its' parent process that are longer that the above character limitation.



Hide comments

Comments

  • Allowed HTML tags: <em> <strong> <blockquote> <br> <p>

Plain text

  • No HTML tags allowed.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Lines and paragraphs break automatically.
Publish