mdnajmulhuq :
command prompot open but less tnan 5 seconds its automaticlly close,please help me .
How are you starting it? Is it with a program or a batch file? Or by actually running the cmd.exe?
Many command line programs/scripts will run, then close when they are complete or if there is an error.
If you are running a program (say runme.bat or runme.cmd) and you want the output to stick around, first open a regular command promt using cmd.exe, and then execute the program from that window. It will write any output/errors to the window and will not shut down automatically.