Command Prompt Closes Automatically

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?
 
J

John John

Until someone can give you a permanent fix try running cmd /k and see if
the window stays open.

John
 
J

John 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
 
G

Guest

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
 
J

John John

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
 
J

Jim Hill

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top