Skip to content

Calling wt from cmd for working directory "C:\" causes an error #4571

@Boereck

Description

@Boereck

Hi,

I was testing the new command line options to open a Windows Terminal for a specified working directory. When calling wt new-tab -d "C:\" from PowerShell this seems to work. Calling the same command from cmd however will print the error message [error 0x8007010b when launching powershell.exe']` in the newly opened Windows Terminal instance. Using the "-p" option to launch a different shell will provoke the same error message for the executable associated with the specified profile name.

Environment

Windows build number: Microsoft Windows [Version 10.0.18363.657]
Windows Terminal version: 0.9.433.0

Steps to reproduce

Call wt new-tab -d "C:\" from cmd.

Expected behavior

Open a new Windows Terminal tab with path C:\ set as the current working directory.

Actual behavior

Opens a Windows Terminal instance with the message:
[error 0x8007010b when launching `powershell.exe']

Metadata

Metadata

Assignees

No one assigned

    Labels

    Area-Commandlinewt.exe's commandline argumentsIssue-BugIt either shouldn't be doing this or needs an investigation.Priority-2A description (P2)Product-TerminalThe new Windows Terminal.

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions