ich das aktuelle Verzeichnis in Windows Explorer häufigPowershell Invoke-Item nicht mehr funktioniert Verzeichnisse öffnen in Explorer
ii .
in Powershell verwenden, zu öffnen. Das hat die ganze Zeit funktioniert, aber jetzt passiert nichts.
Das Cmdlet Invoke-Item
funktioniert immer noch. Doing ii somefile.txt
öffnet diese Datei in einem Texteditor. Aber Verzeichnisse funktionieren nicht mehr.
Darüber hinaus funktioniert start .
nicht. Die Verwendung von explorer .
funktioniert.
Lauf
Trace-Command -Name ParameterBinding {ii .} -PSHost
kehrt
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
Lauf
Trace-Command -Name CommandDiscovery {ii .} -PSHost
kehrt
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
Ich denke, vielleicht gibt es ein Dateiassoziationsproblem oder etwas. Aber ich kann nicht herausfinden, was tatsächlich aufruft oder wie man es ändert.
Wie kann ich das wieder funktionieren?
Funktioniert 'ii $ pwd' noch? –
Und eine Standardfrage - haben Sie versucht, Ihren PC aus- und wieder einzuschalten? :) –
@Shedal 'ii $ pwd' funktioniert nicht. –