cmd keeps closing

HunterBrad

Commendable
Apr 20, 2016
12
0
1,510
okay, im trying to run a minecraft server at home, and it uses cmd, but when it runs, it close's out... but runs in background...

is there a way to make it where it doesnt run in background, and to make it where it stays on screen.

if there is, please tell me how, thanks
 
Hey,
It doesn't sound like the command prompt is actually being closed out, just that the window is behind that of your game. It's something that you have to live with in modern operating systems. Just run your game in windowed mode and click the cmd icon on your bottom task bar when you want to make it visible again.
 
Are you stupid or something?

I said it closes completely, meaning it's not even in my taskbar, or running behind anything. It shows that the process is running in task manager, but can't see it
 
Glad he asked, i thought you meant it wasn't staying on top too.. I didn't answer as I couldn't find a way to do it...

Anyway, try this:

Sometimes, you will find that the command prompt window closes automatically when you don't want it to.

To address this problem:
Press Windows key + R to open the Run window
Launch the command prompt by typing:
cmd /K
Adding / K after the command keeps the window open
You can then close the window manually when you no longer need it to be open .

for example:
cmd /k tracert www.google.com
 

There's no reason to be rash. I just didn't understand the question is all. You should try Colif's thing though.