Thread: DOS prompt disapearing

  1. #1
    Registered User
    Join Date
    Oct 2002
    Posts
    160

    DOS prompt disapearing

    Every time I start a bit file or a dos exe file I can only sence the blackness before it go away. I know I've heard about it before but not where. How do I set windows so the problem go away.
    Well english isn't my first language, (it's instead a useless language called danish which only 5 milion people speak!!) so if you think my grammar SUCKS (it does by the way) than you're more then welcome to correct me.
    Hell I might even learn something

  2. #2
    enter this before your main returns 0;
    Code:
    int x;
    std::cin >> x;

  3. #3
    Registered User
    Join Date
    Oct 2002
    Posts
    160
    It's not a program I've maid myself (I know about that thing ) it's BAT and EXE files for DOS in general.
    Well english isn't my first language, (it's instead a useless language called danish which only 5 milion people speak!!) so if you think my grammar SUCKS (it does by the way) than you're more then welcome to correct me.
    Hell I might even learn something

  4. #4
    ¡Amo fútbol!
    Join Date
    Dec 2001
    Posts
    2,138
    add this as the last line of the bat:
    pause

  5. #5
    Redundantly Redundant RoD's Avatar
    Join Date
    Sep 2002
    Location
    Missouri
    Posts
    6,331
    or run it from command.

    Say its game.exe and its located at c:\game.exe

    then run command (start--run--command)

    and type

    cd c:\ (press enter)

    game.exe (press enter)

    i know its in idiot terms but hey, i'm an idiot!

  6. #6
    Registered User
    Join Date
    Oct 2002
    Posts
    385
    It's a lot easier if you just run the compiled program from the command line.....much less complicated.
    Wandering aimlessly through C.....

    http://dbrink.phpwebhosting.com

  7. #7
    Hamster without a wheel iain's Avatar
    Join Date
    Aug 2001
    Posts
    1,385
    i have a similar problem in win2k pro, if i bring up a command prompt, there is no text and until i press enter the prompt is completetely black.
    Monday - what a way to spend a seventh of your life

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Compiling from DOS Prompt using Visual Studio Express 2005
    By The SharK in forum C++ Programming
    Replies: 8
    Last Post: 06-13-2006, 01:24 AM
  2. Dos prompt cursor position
    By bally1020 in forum C Programming
    Replies: 2
    Last Post: 02-17-2005, 05:10 PM
  3. dos prompt disappearing
    By darealnash in forum C++ Programming
    Replies: 18
    Last Post: 09-02-2004, 12:47 PM
  4. Output in DOS Prompt
    By siumui in forum C Programming
    Replies: 4
    Last Post: 12-06-2002, 11:27 PM
  5. Dos Prompt
    By Unregistered in forum C Programming
    Replies: 3
    Last Post: 01-05-2002, 10:14 AM