How to start a exe with a space path by shell Command? #5387
Unanswered
happymingjieli
asked this question in
Q&A
Replies: 1 comment 1 reply
-
|
this should work const child = await new Command('cmd', [
'/C',
'start',
'C:\\Program Files\\path\\FaBuTing_Btest.exe`,
'-arg'
]).spawn(); |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment

Uh oh!
There was an error while loading. Please reload this page.
-
Describe the bug
(on Windows) I am trying to use run to execute programs that have spaces in the pathname and take command line arguments. Something like the following example:
const child = await new Command('cmd', [
'/C',
start C:/Program Files/path/FaBuTing_Btest.exe -arg,]).spawn();
but it doesnt work because of the space in the path (Program Files), so what is the correct way to deal with it?
Reproduction
No response
Expected behavior
No response
Platform and versions
Stack trace
No response
Additional context
No response
Beta Was this translation helpful? Give feedback.
All reactions