How are you trying to open it? Click start > Run, type in CMD, does it close after it opens then? How about if you click on the shortcut in Accessories?
Are you trying to run a command from the Run command like ping? In that case, yes it will run the command and then close the window before you can see it come up really.