Skip to content

doc: update "Spawning .bat and .cmd files on Windows" section#58739

Closed
ericcornelissen wants to merge 1 commit intonodejs:mainfrom
ericcornelissen:child_process-docs-cmd-bat
Closed

doc: update "Spawning .bat and .cmd files on Windows" section#58739
ericcornelissen wants to merge 1 commit intonodejs:mainfrom
ericcornelissen:child_process-docs-cmd-bat

Conversation

@ericcornelissen
Copy link

Remove the suggestion to use spawn following DEP0190.

Fixes: #58735
Refs: https://nodejs.org/docs/latest-v24.x/api/child_process.html

@nodejs-github-bot nodejs-github-bot added child_process Issues and PRs related to the child_process subsystem. doc Issues and PRs related to the documentations. labels Jun 17, 2025
@juanarbol
Copy link
Member

Humble ping to @nodejs/documentation

});

// Script with spaces in the filename:
const bat = spawn('"my script.cmd" a b', { shell: true });
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this doesn't use args array, so this doesn't fall into the DEP0190 case

Copy link
Author

@ericcornelissen ericcornelissen Jun 27, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You're right! I hadn't noticed that.

In that case I agree this may be rejected. Still, depending on the intention of DEP0190, I think it could make some sense to remove this example. Hence, I'll leave it up to the maintainers to close or merge this depending on their opinion. (Notwithstanding your earlier comment about the stdio option.)

@ericcornelissen ericcornelissen closed this by deleting the head repository Mar 8, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

child_process Issues and PRs related to the child_process subsystem. doc Issues and PRs related to the documentations.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Conflict between child_process API guidance and DEP0190

4 participants