2011-12-12 43 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)

相关问题