Run Dos Programs In Winpep

MS-DOS Command ListCommandDescriptionAppendThe append command can be used by programs to open files in another directory as if they were located in the current directory.AssignThe assign command is used to redirect drive requests to a different drive. This command can also show drive assignments and reset drive letters to their original assignments.The attrib command is used to change the attributes of a single file or a directory.BreakThe break command sets or clears extended CTRL+C checking on DOS systems.CallThe call command is used to run a script or batch program from within another script or batch program. The call command has no effect outside of a script or batch file.

Simple Dos Programs

In other words, running the call command at the MS-DOS prompt will do nothing.CdThe cd command is the shorthand version of the chdir command.ChcpThe chcp command displays or configures the active code page number.ChdirThe chdir command is used to display the drive letter and folder that you are currently in.

From the sound of things, you're currently compiling a Windows console program. Even though it's a console program, it still needs Windows to run.To compile a program to run on real DOS, you'll need to find a (probably really old) compiler and (especially) linker that targets DOS and can produce DOS MZ executables. The last Microsoft compiler to target MS-DOS was VC 1.52c. If memory serves, Borland continued to target DOS somewhat later, up through something like Broland C 5 or so.I believe if you check the Digital Mars web site, he may still have a C compiler available that targets DOS. Otherwise, you're going to be stuck looking for something used and quite old.Edit: looking at other answers reminded me of DJGPP and OpenWatcom. My apologies for not mentioning them previously.Be aware that from a C viewpoint, Borland and Microsoft are really old compilers - they don't do namespaces at all, and template support varies from nonexistent in the Microsoft compiler to mediocre in Borland's. DJGPP is basically a DOS extender to which gcc has been ported; the degree to which it's out of date (or modern) will depend on which version of gcc is involved.

The Digital Mars compiler is somewhat more modern than the Borland one if I'm not mistaken, but Walter Bright now spends most of his time working on D instead of C, so the C compiler doesn't really compete with gcc, or MSVC, not to mention something like Comeau or Intel that's based on the EDG front-end. What you're referring to as 'emulated console' has nothing to do with emulation or DOS. You probably are still generating 32/64-bit Windows executables, just using console subsystem.Start by changing your compiler to one capable of generating 16-bit code. I'm pretty sure that still supports 16-bit MZ target out of box.

IIRC too, but I'm not sure and don't know if it's still maintained.Edit: about gotoxy, you could:. Use and don't care what is uses internally (I think it's INT10, though). Use on your own.

Write directly to the VGA memory at 0xB8000I've never actually developed for DOS, so I don't know which method would be considered the best. Third seems to be the fastest one, though. You want to tell your compiler to target dos.

I don't know how to do that, sorry, but maybe this will serve as a hint for googling.Looking at the Code::Blocks website, it seems your IDE can support various compilers (GCC, MSVC and others). So first, figure out which compiler you are using. Then check that compilers documentation.Once you know what compiler you are using, then you can rephrase (refine) your question - I'm sure someone here on stackoverflow will know.According to, it seems the Open Watcom compiler targets dos.

Run Dos Programs In WinpepRun dos programs in winpep 2016

Winpep 8 Download

Also, it is supported by your IDE (Code::Blocks).Good luck!