On Sun, 3 Nov 2002 11:02:02 -0500, "Dimitrie O. Paun" dpaun@rogers.com wrote :
On November 3, 2002 10:38 am, Jaco Greeff wrote:
If COMSPEC is not set, or not found on disk, _popen makes use of c:\windows\system32\cmd.exe binary.
Why not cmd.exe only, and hope to find it in the PATH? I think the PATH in Windows contains windows\system32 in it by default.
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.
Greetings, Jaco
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.
Why not cmd.exe only, and hope to find it in the PATH? I think the PATH in Windows contains windows\system32 in it by default.
Jaco, did you make sure you have the correct link into C:\windows\system32 created by wineinstall ?
lrwxrwxrwx 1 syl wine 31 aoû 3 09:08 /home/c/windows/system32/cmd.exe -> /usr/local/lib/wine/wcmd.exe.so
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.
___________________________________________________________ Do You Yahoo!? -- Une adresse @yahoo.fr gratuite et en français ! Yahoo! Mail : http://fr.mail.yahoo.com
Sylvain Petreolle wrote:
Jaco, did you make sure you have the correct link into C:\windows\system32 created by wineinstall ?
Yes, it is correct. My A07 patch fixes this issue by calling "wcmd.exe" (without the hard-coded path) as per Francois's suggestion.
Greetings, Jaco