This can happen if the input command line is barely under the limit, but ends up exceeding it due to the extra arguments that the wrapper adds. One could hope that _tspawnvp would set errno to a helpful error code, to identify the issue when printing the error with _tperror(), but in practice, it doesn't.