Sign in with
Sign up | Sign in
Your question

Command Prompt closes instantly

Last response: in Windows 7
February 27, 2011 12:37:38 PM

I have two computers running Windows 7 x64. On both of them, whenever I try to open a command line program it closes after a fraction of a second. This happens when I use ipconfig, and hldsupdatetool. This only started happening recently, sometime in the last few weeks, and I have no idea why.

I am aware that I can use cmd and then type ipconfig, but this doesn't work for hldsupdatetool, and it takes much longer than just double clicking or typing ipconfig in the start menu search.

I used HouseCall to scan for viruses, but it didn't find any. Is there any way I can fix this so the ipconfig and other command prompt windows stay open?

Best solution

a b $ Windows 7
February 27, 2011 12:59:48 PM

Windows key plus R, then type in the following, including all the spaces:

cmd /k ipconfig /all

the /k switch should keep the window open
February 27, 2011 4:19:07 PM

Best answer selected by weegee64.