Push-Location [-LiteralPath <String>] [-PassThru] [-StackName <String>] [<CommonParameters>]说明Push-Location cmdlet 将当前位置添加(“推入”)到某个位置堆栈中。 如果指定了路径,则 Push-Location 将当前位置推入位置堆栈,然后将当前位置更改为由该路径指定的位置。 你可以使用 Pop-Location cmdlet 获取...
取得您目前的位置 (Get-Location) 設定您目前的位置 (Set-Location) 儲存和召回最近的位置 (Push-Location 和 Pop-Location) 在 檔案總管 中瀏覽資料夾系統時,您通常會有特定的工作位置,也就是目前開啟的資料夾。 按兩下目前資料夾中的專案即可輕鬆操作。 對於命令行介面,例如Cmd.exe,當您位於與特定檔案相同的...
Windows PowerShell 中的Push-Locationcmdlet 将创建一个你访问过的目录路径的有序历史记录(“堆栈”),你可以通过使用补充的Pop-Locationcmdlet 在目录路径历史记录上返回到之前位置。 首先我们放置两个目录到堆栈中 Push-Location -Path "Local Settings" 1. Push-Location -Path Temp 1. 然后使用Get-location先确认...
Alias oh -> Out-Host Alias popd -> Pop-Location Alias ps -> Get-Process Alias pushd -> Push-Location Alias pwd -> Get-Location Alias r -> Invoke-History Alias rbp -> Remove-PSBreakpoint Alias rcjb -> Receive-Job Alias rcsn -> Receive-PSSession Alias rd -> Remove-Item Alias rdr ...
Windows PowerShell 內建了四個 cmdlet 讓我們可以處理 PS 磁碟機的目前工作位置,我們需要利用這些 cmdlet 來取得或設定 PS 磁碟機的現行目錄,以便進一步的操作,這四個 cmdlet 包括了上述的 Set-Location ,以及 Get-Location、Push-Location、Pop-Location。
Alias pushd -> Push-Location Alias popd -> Pop-Location Location information is therefore stored in a stack. By default, this location stack is not named. So why do I care about this stuff? Well, certainly, I canCDaround orSLaround. But this can begin to be a lot of typing. Here...
Push-Location -stack job1会把当前目录保存到job1堆栈中,而不是标准堆栈中。当然在你想重新回到这个位置时,也需要在Pop-Location中指定这个参数-stack job1。 查找特殊的目录 Windows使用了很多特殊的目录,根据系统的安装,可能稍有不同。一些非常重要的目录的路径同时也保存在Windows环境变量中,这样PowerShell 可以...
Das Pop-Location Cmdlet ändert den aktuellen Speicherort an die Position, die zuletzt mithilfe des Push-Location Cmdlets auf den Stapel verschoben wurde. Sie können einen Speicherort aus dem Standardstapel oder aus einem Stapel einfügen, den Sie mithilfe eines Push-Location Befehls ...
Das Pop-Location Cmdlet ändert den aktuellen Speicherort an die Position, die zuletzt mithilfe des Push-Location Cmdlets auf den Stapel verschoben wurde. Sie können einen Speicherort aus dem Standardstapel oder aus einem Stapel einfügen, den Sie mithilfe eines Push-Location Befehls ...
Use thePush-Locationcmdlet to save the current working location. Use theSet-Locationcmdlet to change to the appropriate registry drive. Use theSet-ItemPropertycmdlet to assign a new value to the registry property. Use thePop-Locationcmdlet to return to the original working location. ...