Command line argument (--startingDirectory,-d) does not accept folders with spaces #6633

Closed
opened 2026-01-31 00:43:30 +00:00 by claunia · 6 comments
Owner

Originally created by @jasondicker-zz on GitHub (Feb 26, 2020).

Environment

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

Steps to reproduce

From the command line, run: wt -d c:\Users\Folder With Spaces

--or--

From the command line, run: wt -d "c:\Users\Folder With Spaces"

Expected behavior

Windows Terminal should open at the specified starting directory i.e "c:\Users\Folder With Spaces"

Actual behavior

Windows Terminal opens with the following error(s):

[error 0x80070002 when launching `With Spaces']

--or--

[error 0x8007010b when launching `cmd.exe']

Originally created by @jasondicker-zz on GitHub (Feb 26, 2020). # Environment Windows build number: Microsoft Windows [Version 10.0.18362.657] Windows Terminal version: 0.9.433.0 # Steps to reproduce From the command line, run: wt -d c:\Users\Folder With Spaces --or-- From the command line, run: wt -d "c:\Users\Folder With Spaces" # Expected behavior Windows Terminal should open at the specified starting directory i.e "c:\Users\Folder With Spaces" # Actual behavior Windows Terminal opens with the following error(s): [error 0x80070002 when launching `With Spaces'] --or-- [error 0x8007010b when launching `cmd.exe']
claunia added the Resolution-DuplicateProduct-TerminalArea-Commandline labels 2026-01-31 00:43:30 +00:00
Author
Owner

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

This will almost certainly get better with #4724.

This might be a duplicate of #4571

@zadjii-msft commented on GitHub (Feb 26, 2020): This will almost certainly get better with #4724. This might be a duplicate of #4571
Author
Owner

@german-one commented on GitHub (Feb 26, 2020):

@jasondicker Can you confirm that
wt -d "C:\Program Files"
works, while
wt -d "C:\Program Files\"
does not?

@german-one commented on GitHub (Feb 26, 2020): @jasondicker Can you confirm that `wt -d "C:\Program Files"` works, while `wt -d "C:\Program Files\"` does not?
Author
Owner

@jasondicker-zz commented on GitHub (Feb 27, 2020):

I can confirm that the trailing "\" causes the problem.

@jasondicker-zz commented on GitHub (Feb 27, 2020): I can confirm that the trailing "\\" causes the problem.
Author
Owner

@german-one commented on GitHub (Feb 27, 2020):

Thank you for testing again! In that case it's a dup of #4571 and fortunately we have a potential fix already.

@german-one commented on GitHub (Feb 27, 2020): Thank you for testing again! In that case it's a dup of #4571 and fortunately we have a potential fix already.
Author
Owner

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

Thanks for confirming!

/dup #4571

@zadjii-msft commented on GitHub (Feb 27, 2020): Thanks for confirming! /dup #4571
Author
Owner

@ghost commented on GitHub (Feb 27, 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 27, 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!
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#6633