Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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

In some Windows OS, every command line program works fine, but in some Windows OS, such as WinXP, This program cannot be run in DOS mode error occurs.

How do I avoid this problem?

share|improve this question
What program are you trying to run that causes that? – Synetech Sep 18 '12 at 23:21
nmap, pwdump and etc. (zenmap is not working also, in graphical side) but calc.exe works and other built-in exe's, so I am going like, what the hell is this? – user41648 Sep 18 '12 at 23:28
Hmm, that’s strange because it sounds like a permission issue, but that wouldn’t be the error for permissions. – Synetech Sep 18 '12 at 23:38
Could this be DEP? – user3463 Sep 18 '12 at 23:45
@RandolphWest, I can’t imagine that DEP would throw that error. The only reasons I can think of for that specific error would be either running it in DOS, or if the executable is corrupt. – Synetech Sep 18 '12 at 23:49

Are you using or Cmd.exe? Try Cmd.

Also if you're using a shortcut to get to the command prompt, make sure you've not messed with the program's settings, especially those related to Memory or Compatibility (note: screenshots sourced from random site, do not configure as shown since those are probably not all default settings):

EXE Memory settings on XP EXE Compatibility settings on XP

share|improve this answer
That’s what I thought of first, but it shouldn’t matter; it would still run Windows executables (remember, there do exist 16-bit Windows programs). – Synetech Sep 18 '12 at 23:39
@Synetech: No harm in checking. Maybe some setting such as Protected etc. is causing 32-bit EXEs to fail, thinking that the environment is actual DOS. – Karan Sep 18 '12 at 23:42

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.