Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

There is a windows program I'm trying to run. When I run it, it says

wine: cannot find :"C:\\windows\\system32\\DO.exe"

I can't find a DO.exe program on my windows computer. I suspect it's trying to run some kind of command script internally (Earlier it asked for system32\find.exe, which I was able to copy over).

So, is there a better way to run this so that wine will be able to translate and run the script correctly?

share|improve this question
up vote 2 down vote accepted

Contrary to find.exe, do is not a windows program but is part of the cmd.exe shell (windows' commandline) and is used in for loops and maybe in some other places (don't know much of cmd.exe syntax).

Because the wine implementation of cmd.exe doesn't understand all of windows cmd.exe syntax, it try to look for an external executable for resolving a command that it should resolve itself, but there is no such thing as a do.exe executable.

You may try to look at what script is executed by your program (find .bat and .cmd text files) and edit for loops so that they run in wine.

Or if you feel brave you may look at this patch (see comment 2 attachment) and see if it helps (seems it will not apply to recent wine versions but should be easy enough to adapt).

share|improve this answer

Associate .bat files with this command:

wine cmd.exe /c

or open from terminal:

wine cmd.exe /c <FILE>.bat
share|improve this answer
Hmm... unfortunately, I don't still have this script to test this answer. Hey - if anyone does use this answer and it works, let me know! – David Oneill Jun 18 '12 at 19:16

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.