On November 3, 2002 12:45 pm, Jaco Greeff wrote:
I have tried this, CreateProcess doesn't find "cmd.exe" if we don't specify the full path. (This happend in the test case with the neccessary changes made to default to "cmd.exe"). But yes, it would be great.
But the question is whether or not CreateProcess _should_ find it, or not. If it is, than it's a bug in CreateProcess, and working around it is rather detrimental. If not, than fine, use the full path. We should always try to fix the bug at the source, not to invent workarounds.