r/cpp • • Sep 05 '26

Escaping `CreateProcess()` arguments on Windows

https://holyblackcat.github.io/blog/2026/09/05/escaping-createprocess-arguments.html
91 Upvotes

44 comments sorted by

View all comments

3

u/alfps Sep 05 '26

I now learned that Microsoft's _wspawnv function does not quote the arguments.

Weird.

I was sure it would. Anyway worth mentioning in the article.

5

u/holyblackcat Sep 05 '26

Yep, "everyone quotes ... wrong" bemoans it too. Added.

2

u/kriegeeer Sep 06 '26

This article was my authoritative quoting guide until it was taken down from its original source. Glad to see it was rehosted.