List all environment variables from the command line

前端 未结 8 1422
星月不相逢
星月不相逢 2020-11-28 17:01

Is it possible to list all environment variables from a Windows\' command prompt?

Something equivalent to PowerShell\'s gci env: (or ls e

8条回答
  •  甜味超标
    2020-11-28 17:47

    As mentioned in other answers, you can use set to list all the environment variables or use

    set [environment_variable] to get a specific variable with its value.

    set [environment_variable]= can be used to remove a variable from the workspace.

提交回复
热议问题