What are valid characters for Windows environment variable names and values?

前端 未结 3 1195
借酒劲吻你
借酒劲吻你 2021-01-03 22:49

After some reseach, I found out that length limits for names are 255 and for values 32767 characters.

But which characters are allowed for names?
And wh

3条回答
  •  無奈伤痛
    2021-01-03 23:15

    seems that the only prohibited character is equal ("=") sign - https://msdn.microsoft.com/en-us/library/windows/desktop/ms682653(v=vs.85).aspx

    The name of an environment variable cannot include an equal sign (=).

提交回复
热议问题