打开目录,我经常使用Powershell的调用,项目不再工作在资源管理器
ii .
在PowerShell中在Windows资源管理器打开当前目录。这曾经一直工作,但现在没有任何反应。
的Invoke-Item
小命令仍然有效。做ii somefile.txt
在文本编辑器中打开该文件。但目录不再工作了。
此外start .
不起作用。使用explorer .
确实有效。
运行
Trace-Command -Name ParameterBinding {ii .} -PSHost
回报
DEBUG: ParameterBinding Information: 0 : BIND NAMED cmd line args [Invoke-Item]
DEBUG: ParameterBinding Information: 0 : BIND POSITIONAL cmd line args [Invoke-Item]
DEBUG: ParameterBinding Information: 0 : BIND arg [.] to parameter [Path]
DEBUG: ParameterBinding Information: 0 : Binding collection parameter Path: argument type [String], parameter type [System.String[]],
collection type Array, element type [System.String], no coerceElementType
DEBUG: ParameterBinding Information: 0 : Creating array with element type [System.String] and 1 elements
DEBUG: ParameterBinding Information: 0 : Argument type String is not IList, treating this as scalar
DEBUG: ParameterBinding Information: 0 : Adding scalar element of type String to array position 0
DEBUG: ParameterBinding Information: 0 : BIND arg [System.String[]] to param [Path] SUCCESSFUL
DEBUG: ParameterBinding Information: 0 : BIND cmd line args to DYNAMIC parameters.
DEBUG: ParameterBinding Information: 0 : MANDATORY PARAMETER CHECK on cmdlet [Invoke-Item]
DEBUG: ParameterBinding Information: 0 : CALLING BeginProcessing
DEBUG: ParameterBinding Information: 0 : CALLING EndProcessing
运行
Trace-Command -Name CommandDiscovery {ii .} -PSHost
回报
DEBUG: CommandDiscovery Information: 0 : Looking up command: ii
DEBUG: CommandDiscovery Information: 0 : Alias found: ii Invoke-Item
DEBUG: CommandDiscovery Information: 0 : Cmdlet found: Invoke-Item Microsoft.PowerShell.Commands.InvokeItemCommand,
Microsoft.PowerShell.Commands.Management, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35
我想也许有一个文件关联问题或什么的。但我找不出什么Invoke-Item
实际上是调用或如何改变它。
我怎样才能得到这个工作了?
是否'$ II仍然pwd'工作? – 2012-04-13 13:05:04
还有一个标准问题 - 您是否尝试过关闭电脑? :) – 2012-04-13 13:05:35
@Shedal'ii $ pwd'不起作用。 – 2012-04-13 13:10:10