1
在powershell中打印環境變量的命令是什麼?在cmd中是%path%
但它不適用於我powershell
打印到變量的路徑
在powershell中打印環境變量的命令是什麼?在cmd中是%path%
但它不適用於我powershell
打印到變量的路徑
使用命令Get-ChildItem Env:
來獲取所有環境變量。如果你只想要路徑然後使用Get-ChildItem Env:Path
謝謝!我也發現$ Env:Path有效。但$ Env:顯示所有環境變量不 – kong
你有沒有努力自己找到答案?使用Get-ChildItem Env: –