打開目錄,我經常使用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