文件夾如何打開PowerShell中的文件夾? 我不如何在一個特定的文件夾中啓動PowerShell的交談。如何打開PowerShell中
我的意思是,在PowerShell中的命令行我想 打開文件夾如:「打開的文檔」
文件夾如何打開PowerShell中的文件夾? 我不如何在一個特定的文件夾中啓動PowerShell的交談。如何打開PowerShell中
我的意思是,在PowerShell中的命令行我想 打開文件夾如:「打開的文檔」
可以使用的explorer.exe打開文件夾:
explorer.exe c:\temp\
explorer.exe <YourFolderPathHere>
我完全不明白你想要什麼,但我有兩個可能的解決方案:
explorer .\Documents
或
cd .\Documents
使用Invoke-Item
小命令,或它的別名:II。
PS> ii c:\windows # open the windows directory in windows explorer
PS> ii c:\book.xls # open book.xls in Excel
PS> ii . # open the current directory in windows explorer
使用Invoke-Item
,別名ii
:
ii d:\temp\
對於PowerShell和CMD兼容的方式(我認爲的最常用的方法):
start .
start c:\
說不上來,如果這應該是最常見的 - 調用項/ II得多powershelly :) – x0n
另一種變體
hh c:\
hh http://stackoverflow.com/questions/8471106
hh $env:windir\help\WindowsPowerShellHelp.chm
這是不一樣。 – manojlds
要PowerShell的類型中打開當前文件夾:
PS >> explorer.exe的$(PWD)
的可能重複[是否有可能從打開PowerShell的資源管理器窗口(HTTP://計算器。 COM /問題/ 320509/IS-IT-可以到開放式的資源管理器窗口,從-PowerShell中) – manojlds