Actually I experienced the same problem as you. And as soon as I knew this, I browsed in the net on how to stop command prompt from shutting down whenever I open cmd at run. I am very thankful to coolbuster for that useful tips. Actually I slightly changed the steps, instead of going to 'folder options' (becasue my folder option was deleted by a virus & I don't know how to fix it) I used WinRar Archive by doing this:
right click on the desktop then point to new and browse the WinRar Archive and click it. After opening it browse the windows at drive c by looking in the dropdown arrow. Delete the suspected files then the rest I followed coolbuster's techniques. It's effective! Because of my enjoyment after finding this useful tips on this forum I registered as soon as possible. Thanks to the people here who are professionals when it comes in solving computer problems. ^^