My command prompt won't run?

I can go to search, type in cmd, and open up the command prompt but when I try to run a batch file such as starting up a minecraft server, the command prompt shows for a split second then disappears. I have no idea why this is.

About a year ago I uninstalled norton to get Avira (was in job corps and needed an antivirus that took less bandwith) and a day after uninstalling it I was watching youtube and everything started shutting down and freaking out. I shut my laptop off right away, turned it back on and saw all my files were gone and gave it to someone who was in computer services to help me. After 3 hours of messing with my laptop he found out that none of my files were deleted, they were just hidden. I can't even find them when using the search bar. Takes me 30min to find microsoft paint.

Could this be why that happens? Anyway I can fix this? Would a factory reset work? Really want this to work, I hate not being able to run batch files.

Hi
click start menu
right click on the mouse
go to properties and go to start menu bar
click customise then choose run command ON
so every time you type cmd in run you can easily acess run command easily

What you describe in the first paragraph is completely normal.
When you run a console application like that and there's some error in the parameters or something, the program will print a short message, then exit. This leads to the black window showing up then disappearing immediately.

What you need to do is open the command prompt as usual (cmd), then type the command to start the server _inside the command prompt_. Since you opened the prompt yourself, it will stay open, and you'll get a chance to actually read the message printed by the batch program you're trying to run.

Edit your batch file and put -t command for

eg:- 10.222.85.10 -t

in your case the -t command is missing, so it flashes for a second and disappears…

try this nothing to do with command prompt run as…