Dos Window Settings - Programmers Heaven

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

Dos Window Settings

tonybar2tonybar2 Posts: 72Member
hello all,

I was wondering how to set my dos window, so that it does not just flash on real quick when executing program?
I know about just putting a scanf
or using system("pause");(which only works in C for me?)

but isn't there a way i can change the dos window settings?

Comments

  • weiccoweicco Posts: 950Member
    : hello all,
    :
    : I was wondering how to set my dos window, so that it does not just flash on real quick when executing program?
    : I know about just putting a scanf
    : or using system("pause");(which only works in C for me?)
    :
    : but isn't there a way i can change the dos window settings?
    :
    :

    There's no way to change those settings. OS creates DOS console for your program when it starts and destroys it when it stops. Only way is to add getch() or something like that at the end of the program so that program wouldn't end until user presses some button.
  • etlusketlusk Posts: 168Member
    : : hello all,
    : :
    : : I was wondering how to set my dos window, so that it does not just flash on real quick when executing program?
    : : I know about just putting a scanf
    : : or using system("pause");(which only works in C for me?)
    : :
    : : but isn't there a way i can change the dos window settings?
    : :
    : :
    :
    : There's no way to change those settings. OS creates DOS console for your program when it starts and destroys it when it stops. Only way is to add getch() or something like that at the end of the program so that program wouldn't end until user presses some button.
    :
    If you mean that you are running a DOS program from WINDOWS and have this problem there is a way around it(or at least in WIN95).
    Make a MSDOS icon on your desktop.(clik START - PROGRAMS -ACCESSORIES- then LEFT CLICK on MSDOS icon for a shortcut - MOVE icon to the desktop area)
    RIGHT CLICK icon - CLICK properties (It then allows you to change all sorts of stuff)
    You may have to run your program from a batch file, maybe not. Just check out the options and customize it to your needs. The PROGRAM option allows you to run COMMAND.COM and a batch file.
    The Screen option allows you to change the WINDOW/FULL SCREEN.
    It sound to me like your problem is that when the program terminates the window closes. Rather quickly too.
    Good Luck


Sign In or Register to comment.