May we use winelib-wcmd as $COMSPEC command processor?

Alexandre Julliard julliard at
Sun Sep 8 14:40:53 CDT 2002

Uwe Bonnes <bon at> writes:

> It works with a winelib executable, when COMSPEC points to the real file. As
> our present built system creates files, comspec must specify this
> existing file (or the file must be renamed to an .exe
> file). Just as a reference for others...

You shouldn't need to rename the file or point to the Unless
you have changed the loadorder, a .exe loaded from the system
directory should match the, just like it does for dlls
even if the file itself doesn't exist.

So a CreateProcess of %systemdir%\wcmd.exe should launch,
just like a LoadLibrary of %systemdir%\user32.dll will load, even if you don't have a real user32.dll file in
there. If it doesn't do this there's a bug somewhere.

Alexandre Julliard
julliard at

More information about the wine-devel mailing list