New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
This program cannot be run in DOS mode #3169
Comments
EXE files will print that message when you execute the "MS-DOS stub" of a Windows application. Real MS-DOS will do the same. DOSBox-X will always run executables through the MS-DOS header, same as DOSBox SVN and any other fork, and any real MS-DOS system. |
This is the MS-DOS EXE header originally defined since MS-DOS 2.0: |
The Windows or OS/2 header is placed elsewhere in the EXE file, and a DWORD at offset 0x3C points at it. The signature at that offset indicates what kind it is. "NE" Windows 3.x 16-bit executable or OS/2 16-bit executable |
This design allows the EXE to contain code for both MS-DOS and Windows. By default, Microsoft's Linker will attach a small "stub" program that prints that message, however you can put anything you like in the MS-DOS portion. |
Understand, thanks for the detailed explanation |
Can the DosBox-X window be resize, in runtime? in English mode , it's ok, but Chinese mode, cannot be. |
You can increase or decrease the window size in Chinese TTF mode at run-time with the menu options "Increase TTF font size" / "Decrease TTF font size" (under "Video" => "TTF options"), or using the keyboard shortcuts F11 + Up/Down (default for these menu options). P.S. DOSBox-X emulates the behaviors of "pure" DOS mode by default, so the message "This program cannot be run in DOS mode" is expected when you run PE applications. There is a GUI for DOS known as Windows 9x which does allow you to run PE application outside DOS command prompt when launched from it, and you can run such applications if you enable START command with |
The response is really fast, thank you very much |
But windows EXE, in DOSBOX-X command mode |
@Arthur3032 I don't have the Clipper program that you mentioned. Can you upload it so that I can test it as well? |
in Dosbox-X command mode in Dosbox-X command mode |
@Arthur3032 Thanks for the program. I could reproduce the issue, and have hopefully fixed in the updated Windows build below. Please check it out: |
Too strong, can't believe it, am I dreaming? (It was actually executed normally) |
So, in later versions, is that the same? |
@Arthur3032 Sure, it is fixed for the later version. |
That's great |
Closing the issue. |
Code of Conduct & Contributing Guidelines
Have you checked that no other similar question(s) already exists?
Question
dear sir,
I execute the command in the DOSBOX-X command mode,
For example: winet.exe
Will appear
This program cannot be run in DOS mode.
After all, it is still executed, and it is executed normally.
However, I am in Clipper 5.3b and call winet.exe
It only appears
This program cannot be run in DOS mode.
There is no more
ps.
DoxBox-X 0.83.21
DOS v7.1
country: 886,995
language: zh_TW
The text was updated successfully, but these errors were encountered: