如果指定了不存在的堆栈,则 Push-Location 会创建该堆栈。 若要将某个位置堆栈设为当前位置堆栈,请使用 Set-Location cmdlet 的 StackName 参数。未命名的默认位置堆栈仅在其是当前位置堆栈时处于完全可访问状态。如果使命名位置堆栈成为当前位置堆栈,则不能再使用 Push-Location 或Pop-Location cmdlet 添加或获取...
PowerShell 创建一个未命名默认位置堆栈,你可以创建多个命名位置堆栈。 如果没有指定位置堆栈,则 PowerShell 使用当前位置堆栈。 默认情况下,未命名的默认位置为当前位置堆栈,但你可以使用Set-Locationcmdlet 来更改当前位置堆栈。 若要管理位置堆栈,请使用 PowerShell 位置 cmdlet,如下所示。
The core command for setting/changing location and pushing it onto a location stack. This is the equivalent of the pushd command.
如果堆栈不存在,则 Push-Location 将创建该堆栈。 如果不使用此参数,则 Push-Location 将位置添加到当前位置堆栈。 默认情况下,当前位置堆栈为 PowerShell 创建的未命名的默认位置堆栈。若要将某个位置堆栈设为当前位置堆栈,请使用 Set-Location cmdlet 的 StackName 参数。 有关位置堆栈的详细信息,请参阅备注。
Push-Location[-LiteralPath <String>] [-PassThru] [-StackName <String>] [<CommonParameters>] 说明 cmdlet 将Push-Location当前位置 ) (“pushes”添加到位置堆栈上。 如果指定路径,Push-Location则将当前位置推送到位置堆栈,然后将当前位置更改为路径指定的位置。 可以使用Pop-Locationcmdlet 从位置堆...
Without this parameter, Push-Location adds the location to the current location stack. By default, the current location stack is the unnamed default location stack that PowerShell creates. To make a location stack the current location stack, use the StackName parameter of the Set-Location cmdlet...
Gets or sets the StackName parameter which determines which location stack to use for the push. If the parameter is missing or empty the default location stack is used.
SetAuthenticodeSignatureCommand SetClipboardCommand SetContentCommand SetDateCommand SetExecutionPolicyCommand SetItemCommand SetItemPropertyCommand SetLocationCommand SetMarkdownOptionCommand SetPSBreakpointCommand SetPSDebugCommand SetPSSessionConfigurationCommand ...