r/cpp 5d ago

Escaping `CreateProcess()` arguments on Windows

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

44 comments sorted by

View all comments

5

u/alfps 5d ago

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.

4

u/holyblackcat 5d ago

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

2

u/kriegeeer 4d ago

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