在powershell中打印环境变量的命令是什么?在cmd中它是%path%
,但在powershell
中对我不起作用
最佳答案
使用命令Get-ChildItem Env:
获取所有环境变量。如果只需要路径,请使用Get-ChildItem Env:Path
关于powershell - 打印变量的路径,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/38538585/
标签 powershell cmd
在powershell中打印环境变量的命令是什么?在cmd中它是%path%
,但在powershell
中对我不起作用
最佳答案
使用命令Get-ChildItem Env:
获取所有环境变量。如果只需要路径,请使用Get-ChildItem Env:Path
关于powershell - 打印变量的路径,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/38538585/