Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CLI: CmdHelper should be working even the directory has 'space' characters #20965

Merged
merged 1 commit into from
Oct 4, 2024

Conversation

EngincanV
Copy link
Member

@EngincanV EngincanV commented Oct 3, 2024

Process.Start(new ProcessStartInfo("cmd", $"/c start \"\" {pathOrUrl}") { CreateNoWindow = true });

Note: \"\" is needed in the code above, it's a dummy title name and it should be provided to pass the full path within quotes (for cmd command). There is not such restriction in xdg-open (Linux) and open (OSX) commands.

@berkansasmaz berkansasmaz merged commit 26dd489 into rel-8.3 Oct 4, 2024
2 of 3 checks passed
@berkansasmaz berkansasmaz deleted the EngincanV/cmd-helper branch October 4, 2024 08:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants