【发布时间】:2017-11-12 10:23:05
【问题描述】:
当我运行$PSScriptRoot 时,它返回null。我使用的是 PS 版本 4。
$val = Join-Path -Path $PSScriptRoot WebPlatformInstaller_amd64_en-US.msi
错误
Join-Path:无法将参数绑定到参数“路径”,因为它是 空字符串。
【问题讨论】:
-
您是否在 PowerShell ISE 中执行此操作?