2011-12-12 44 views
29

文件夾如何打開PowerShell中的文件夾? 我如何在一個特定的文件夾中啓動PowerShell的交談。如何打開PowerShell中

我的意思是,在PowerShell中的命令行我想 打開文件夾如:「打開的文檔」

+5

的可能重複[是否有可能從打開PowerShell的資源管理器窗口(HTTP://計算器。 COM /問題/ 320509/IS-IT-可以到開放式的資源管理器窗口,從-PowerShell中) – manojlds

回答

5

可以使用的explorer.exe打開文件夾:

explorer.exe c:\temp\ 
explorer.exe <YourFolderPathHere> 
1

我完全不明白你想要什麼,但我有兩個可能的解決方案:

explorer .\Documents 

cd .\Documents 
52

使用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 
9

使用Invoke-Item,別名ii

ii d:\temp\ 
10

對於PowerShell和CMD兼容的方式(我認爲的最常用的方法):

start . 
start c:\ 
+1

說不上來,如果這應該是最常見的 - 調用項/ II得多powershelly :) – x0n

-1

另一種變體

hh c:\ 

hh http://stackoverflow.com/questions/8471106 

hh $env:windir\help\WindowsPowerShellHelp.chm 
+0

這是不一樣。 – manojlds

6

要PowerShell的類型中打開當前文件夾:

PS >> explorer.exe的$(PWD)

相關問題