Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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
show 2 more comments

1 Answer

Are you using Command.com 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
1  
@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
add comment

Your Answer

 
discard

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.