Howdy, Stranger!

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

Sign In with Facebook Sign In with Google Sign In with OpenID

Categories

We have migrated to a new platform! Please note that you will need to reset your password to log in (your credentials are still in-tact though). Please contact lee@programmersheaven.com if you have questions.
Welcome to the new platform of Programmer's Heaven! We apologize for the inconvenience caused, if you visited us from a broken link of the previous version. The main reason to move to a new platform is to provide more effective and collaborative experience to you all. Please feel free to experience the new platform and use its exciting features. Contact us for any issue that you need to get clarified. We are more than happy to help you.

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.