Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to prevent Command prompt from exiting??

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
In a windows MDI application if I run the following code
system("tracert 157.227.2.105");
in a Command Handler, the Ms-Dos prompt flashes with the output and exits. Is there any way in which that window can be made to stay till the user presses enter on it.

Thanks in advance,
Samta Jain.



 
maybe you should try to insert system("pause") in your code.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top