Command Prompt Closes Automatically

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hey there, when i run commmand prompt (click start > run > type cmd and
enter) the command prompt box pops up 4 about 1 second, just enough 4 me 2
see that it is the cmd command, and then closes, leaving no trace that i
eva ran it, (e.g. redundant tasks in task manager or anything), I've tried
googling it, and no1 else seems 2 be having a problem with this, I've got no
viruses, run AVg and even did that McAffee online thing, all i got from that
was it telling me my cookies were classed as an 'immienit' threat, and i
also use an up2 date spybot search n destroy, so it aint no spyware or
anything makin the problem, so if any1 has any idea how 2 fix it plz some
help?
 
Until someone can give you a permanent fix try running cmd /k and see if
the window stays open.

John
 
PS: Look in the Environment Variables to make sure that the ComSpec
Variable is properly entered and has no /c switch. Its value should be:

%SystemRoot%\system32\cmd.exe

John
 
John John said:
PS: Look in the Environment Variables to make sure that the ComSpec
Variable is properly entered and has no /c switch. Its value should be:

%SystemRoot%\system32\cmd.exe

John
Thanks, but it hasnt worked, when i type in %systemroot... it opens, but
then when i type in any commands it simply just ignores it and begins a new
line, u know like
C:\windows\system32ping 127.0.0.1
C:\windows\system32>

Thats all it does no matter what command i try :S
 
I'm not sure that I understand what it is that you are doing... if you
enter %systemroot% in the run box it will simply open Windows Explorer
in the Windows installation folder. If none of the expected commands
work in the Run box then your Environment Variables are probably wrong.

Try this: Execute cmd.exe from its location (Usually in
C:\WINDOWS\SYSTEM32) or just use Windows Explorer to find the file and
double click it where you find it. Does it work? If yes but it doesn't
work from the run box I suspect Environment Variables are incorrect.

Look here for EV and usual defaults:
http://vlaurie.com/computers2/Articles/environment.htm

Incorrect values in %COMSPEC% or %PATH% or %PATHEXT% can cause problems
as you describe.

John
 
the command prompt box pops up ... and then closes

Try this:

1) Right-click your desktop and choose New/Shortcut
2) Enter "C:\WINDOWS\System32\cmd.exe /D" at the prompt.
3) put anything you want for its name.

Open that.

If it works, type "help cmd" at the prompt and wrap your head around the
response; I like guis for reading longish text, so I'd say `help cmd
"%USERPROFILE%\My Documents\cmdhelp.txt"` and then mouse up the pretty
docs that way.

If it doesn't work, I'm as lost as you are.

Hope this helps,
Jim
 
Back
Top