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

Jerold Schulman

December 15, 2003

1 Min Read
ITPro Today logo in a gray background | ITPro Today

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.



Sign up for the ITPro Today newsletter
Stay on top of the IT universe with commentary, news analysis, how-to's, and tips delivered to your inbox daily.

You May Also Like