On Tue, Sep 13, 2011 at 02:43, Martin Gregorie <martin@xxxxxxxxxxxx> wrote: > On Mon, 2011-09-12 at 18:31 -0500, stvs wrote: >> Thanks for the suggestion, but that wil fail because it is wine that >> fails when executed from within a directory containing a special >> character. >> > You said 'There is no way for me to escape the directory's name in the > (scripted) call to wine', which indicates that your problem is an > inability to escale question marks in a non-Windows script. Your example > only confirms this by showing: > > cd 'foo?' > wine cmd.exe bar.exe > > which nowhere indicates that wine and its app has much idea what > directory its in when it fails. As already mentioned, '?' is disallowed in dir/filenames in windows, and wine conforms to that. See http://msdn.microsoft.com/en-us/library/aa365247(v=VS.85).aspx#naming_conventions for more information.