wt.exe /d doesn't work if the directory path ends in '\' and is quoted #6620

Closed
opened 2026-01-31 00:43:15 +00:00 by claunia · 5 comments
Owner

Originally created by @viorel-m on GitHub (Feb 25, 2020).

WT Version: 0.9.433.0
OS/PS Build: 10.0.19572.1000.

This works:
wt /d "C:\Users\"

This doesn't:
wt /d "c:\Documents and Settings\"

The error is
[error 0x8007010b when launching `powershell.exe']

Workaround: add a period at the end:
wt /d "c:\Documents and Settings\."

Originally created by @viorel-m on GitHub (Feb 25, 2020). WT Version: 0.9.433.0 OS/PS Build: 10.0.19572.1000. This works: wt /d "C:\Users\\" This doesn't: wt /d "c:\Documents and Settings\\" The error is [error 0x8007010b when launching `powershell.exe'] Workaround: add a period at the end: wt /d "c:\Documents and Settings\\."
Author
Owner

@zadjii-msft commented on GitHub (Feb 25, 2020):

wait what

I didn't think that we supported /d, /startingDirectory, etc. I thought we only supported the -d --startingDirectory format. Color me pleasantly surprised 😄.

regardless this is probably a bug, so I'll add it to 1.0. Thanks!

@zadjii-msft commented on GitHub (Feb 25, 2020): _wait what_ I didn't think that we supported `/d`, `/startingDirectory`, etc. I thought we only supported the `-d` `--startingDirectory` format. Color me _pleasantly surprised_ 😄. _regardless_ this is _probably_ a bug, so I'll add it to 1.0. Thanks!
Author
Owner

@DHowett-MSFT commented on GitHub (Feb 25, 2020):

This is actually a /dup of #4571 (more info in that thread)

@DHowett-MSFT commented on GitHub (Feb 25, 2020): This is actually a /dup of #4571 (more info in that thread)
Author
Owner

@ghost commented on GitHub (Feb 25, 2020):

Hi! We've identified this issue as a duplicate of another one that already exists on this Issue Tracker. This specific instance is being closed in favor of tracking the concern over on the referenced thread. Thanks for your report!

@ghost commented on GitHub (Feb 25, 2020): Hi! We've identified this issue as a duplicate of another one that already exists on this Issue Tracker. This specific instance is being closed in favor of tracking the concern over on the referenced thread. Thanks for your report!
Author
Owner

@DHowett-MSFT commented on GitHub (Feb 25, 2020):

(Also, 4571 and 4715 o_O)

@DHowett-MSFT commented on GitHub (Feb 25, 2020): (Also, 4571 and 4715 o_O)
Author
Owner

@viorel-m commented on GitHub (Feb 25, 2020):

Ah, yes - sorry - I looked for duplicates but my search didn't find these.
Thanks

@viorel-m commented on GitHub (Feb 25, 2020): Ah, yes - sorry - I looked for duplicates but my search didn't find these. Thanks
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#6620