The CMD function is supposed to open a new command prompt window, however in Windows 7, it opens another inside of the existing one so if you typed in exit, it will simple exit the most recent one started. Is there a way to make CMD open a new window?

migrated from stackoverflow.com Sep 25 '10 at 2:10

This question came from our site for professional and enthusiast programmers.

  • 3
    It does this in all versions of Windows AFAIK. Anyway, this isn't a programming question. – Marcelo Cantos Sep 23 '10 at 10:39
  • 1
    I think you better ask this question at super user. Link is superuser.com – MD Sayem Ahmed Sep 23 '10 at 10:39
  • 1
    Technically this is 'batch' programming: en.wikipedia.org/wiki/Batch_file Also, this is for a script so it is in fact coding related. – Glenn Nelson Sep 23 '10 at 23:10

Using start may or may not work, I can't recall and don't have Windows handy:

start cmd

OTOH, win+R (to bring up the Run dialog) then "cmd" will always do what you want.

  • I'm doing this from a script so Win-R wouldn't work, however start works just fine. – Glenn Nelson Sep 23 '10 at 23:11

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.