Skip to content

PowerShell 6.1.1 - Context Menu "Open Here" gives error when path is root of drive #8278

@najeebanwer

Description

@najeebanwer

Steps to reproduce

Use "Open Here" context menu at root folder of drive, e.g. C:\

Expected behavior

No error message.

Actual behavior

Shows the following error, although the correct folder is open in PowerShell:

PowerShell 6.1.1
Copyright (c) Microsoft Corporation. All rights reserved.

https://aka.ms/pscore6-docs
Type 'help' to get help.

Set-Location : Cannot find path 'C:" ' because it does not exist.

  • CategoryInfo : ObjectNotFound: (C:" :String) [Set-Location], ItemNotFoundException
  • FullyQualifiedErrorId : PathNotFound,Microsoft.PowerShell.Commands.SetLocationCommand

PS C:>

Environment data

> $PSVersionTable

Name Value


PSVersion 6.1.1
PSEdition Core
GitCommitId 6.1.1
OS Microsoft Windows 10.0.17763
Platform Win32NT
PSCompatibleVersions {1.0, 2.0, 3.0, 4.0...}
PSRemotingProtocolVersion 2.3
SerializationVersion 1.1.0.1
WSManStackVersion 3.0

Metadata

Metadata

Assignees

Labels

Area-Maintainers-Buildspecific to affecting the buildIssue-BugIssue has been identified as a bug in the productResolution-FixedThe issue is fixed.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions