That was in the original post, when you were still passing in a single string.
I should have been more clear - the code I've tested has *always* been passing an array of strings, never as one big string.
I haven't actually tested the same code with ProcessBuilder
I have. And as described, it doesn't work without escaping or quotes.
And the reason why they take a String as input is so that platform-specific stuff such as putting spaces between options, quoting, and escaping are done for you.
Well yes. I know this. However as I've said, I've tested it and it doesn't work in practice.
I feel like i'm repeating myself here - I know how it *should* work in theory, and I know that because i'm passing it as an array of strings it *should* take care of paths with spaces automatically, but please believe me when I say I've actually tested this
on multiple machines and it doesn't work