Windows Vista Tips

Windows Vista Tips > Newsgroups > Windows Vista General Discussion > CMD window closes as soon as it opens!

Reply
Thread Tools Display Modes

CMD window closes as soon as it opens!

 
 
zoney
Guest
Posts: n/a

 
      08-16-2008
I'm having a strange problem with the cmd.exe window. When I open the cmd window it closes as soon as it opens
not allowing me to enter any commands

I can run cmd.exe from safe mode and tried running sfc /scannow while in safe mode but this did not fix anything

Has anyone else run into this problem and does anyone have any suggestions on repairing this

TIA


Post Originated from Vista Support Forums
 
Reply With Quote
 
 
 
 
Joe Morris
Guest
Posts: n/a

 
      08-17-2008
<zoney> wrote:

> I'm having a strange problem with the cmd.exe
> window. When I open the cmd window it
> closes as soon as it opens, not allowing me
> to enter any commands.


Is there anything in the event logs that is related to the CMD shell being
closed?

How are you attempting to open the CMD window? There are several ways to do
so and whether or not they all show the same symptom will help identify the
cause of the problem. You can open the CMD window by:

* <Pearl> -> Programs -> Accessories -> Command Prompt (or <Pearl> -> All
Programs -> Accessories -> Command Prompt if you're using the Toys-R-Us
version of the START menu)

* <whatever> -> RUN and type CMD

* <whatever> -> RUN and type C:\Windows\System32\cmd

Also, does the failure occur when you're logged in as a different user?


If only the link under ACCESSORIES fails, the shortcut is probably broken.
Open its properties (you can do this directly from the START menu) and look
at the settings; among other items the target for the shortcut should be
%SystemRoot%\system32\cmd.exe (with no switches)and the "Start in" field
should read %HOMEDRIVE%%HOMEPATH% and it should be set to run in a normal
window.

If all invocations of CMD fail, try running CMD from the RUN dialog, but
include the /D switch (i.e., enter "CMD /D" without the quotes). If this
works, look at the Registry settings in the two keys

HKCU\SOFTWARE\Microsoft\Command Processor
HKLM\SOFTWARE\Microsoft\Command Processor

and see if either (or both) have a value named "AutoRun". If the AutoRun
data item exists, rename it to something else (e.g., "FUBAR") and try
opening the CMD shell again. By default, neither key will have this data
item, but I've seen some malware that among other things cripples the CMD
interface.

Good luck.

Joe Morris


 
Reply With Quote
 
Malke
Guest
Posts: n/a

 
      08-17-2008
zoney wrote:

> I'm having a strange problem with the cmd.exe window. When I open the
> cmd window it closes as soon as it opens, not allowing me to enter any
> commands.
>
> I can run cmd.exe from safe mode and tried running sfc /scannow while in
> safe mode but this did not fix anything.
>
> Has anyone else run into this problem and does anyone have any suggestions
> on repairing this?


What is the malware/virus status of the machine? If you think it is clean,
what programs (and versions) did you use to determine this?

Be sure the computer is clean:
http://www.elephantboycomputers.com/...moving_Malware

Malke
--
MS-MVP
Elephant Boy Computers - Don't Panic!
FAQ - http://www.elephantboycomputers.com/#FAQ

 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Unable to access Control Panel, window opens then closes automatically Edward Ray Windows Vista General Discussion 7 02-19-2009 07:23 PM
disc drive opens and closes pliz Windows Vista Hardware 1 11-07-2007 05:36 AM
Can't open contact - message box opens then closes immediately lrecord Windows Vista Mail 5 08-29-2007 12:45 AM
Vista RMT - IE7 opens and then immediatly closes GeoffG Windows Vista Installation 0 11-28-2006 11:01 PM
Vista RMT - IE7 opens and then immediatly closes GeoffG Windows Vista Installation 0 11-25-2006 02:01 AM



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59