wcmd: strip quotes around executable and retry on error

Robert Shearman rob at codeweavers.com
Tue Jul 11 13:29:23 CDT 2006


Thomas Kho wrote:

> On 7/6/06, Thomas Kho <tkho at ucla.edu> wrote:
>
>> wcmd: strip quotes around executable and retry on error
>> wcmd currently gives a 'File not found' error for the command:
>> `./wine wcmd /c "notepad test.txt"` because it only tries to execute the
>> program "notepad text.txt". In XP, cmd.exe starts notepad.exe with 
>> test.txt as
>> its argument upon not finding a "notepad text.txt" executable.
>
>
> Hi,
>
> Is there something wrong with this patch?
> http://www.winehq.org/pipermail/wine-patches/2006-July/028367.html


It could probably be fixed by creating a fake notepad.exe in C:\Windows 
or C:\Windows\system32 instead of duplicating some of the work of 
CreateProcess.

-- 
Rob Shearman




More information about the wine-devel mailing list