文件夹如何打开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