Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsWindows VistaWindows XPWindows MeWindows 98Windows 95Virtual PCInternet ExplorerOutlook ExpressWindows MediaSecurity
Related Topics
MS Server ProductsMS OfficePC HardwareMore Topics ...

Windows Forum / Windows Vista / Setup and Deployment / October 2007

Tip: Looking for answers? Try searching our database.

missing command prompt

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
eelliott - 31 Oct 2007 06:22 GMT
I upgraded XP to Vista Home Premium and I found that the command prompt is
gone.  when I try and run cmd an error saying "windows cannot find
C:\Windows\System32\cmd.exe"  any help with this is much appreciated.
Andrew McLaren - 31 Oct 2007 07:29 GMT
"eelliott" <eelliott@discussions.microsoft.com> wrote...
>I upgraded XP to Vista Home Premium and I found that the command prompt is
> gone.  when I try and run cmd an error saying "windows cannot find
> C:\Windows\System32\cmd.exe"  any help with this is much appreciated.

Hmm, strange problem.

First thing I'd do, is use Explorer to inspect the System32 subdirectory and
see if CMD.EXE really is missing, or whether the message is misleading.

Assuming that CMD.EXE is missing, I'd boot from the Vista DVD, chose the
Repair option (rather than Setup), and go to a command prompt. Then run this
command:

   SFC /SCANNOW

This is the "System File Check" utility, which will replace any missing
files in your installation. When it's finished, reboot and continue normal
operations, CMD should work again now.

Hope it helps,

Signature

Andrew McLaren
amclar (at) optusnet dot com dot au

Carl Farrington - 31 Oct 2007 10:31 GMT
>I upgraded XP to Vista Home Premium and I found that the command prompt is
> gone.  when I try and run cmd an error saying "windows cannot find
> C:\Windows\System32\cmd.exe"  any help with this is much appreciated.

Open up regedit (if you can), and navigate to:
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Image File
Execution Options\cmd.exe

with cmd.exe highlighed, can you tell me what is shown on the right?
Carl Farrington - 31 Oct 2007 11:12 GMT
>>I upgraded XP to Vista Home Premium and I found that the command prompt is
>> gone.  when I try and run cmd an error saying "windows cannot find
[quoted text clipped - 5 lines]
>
> with cmd.exe highlighed, can you tell me what is shown on the right?

In fact, cmd.exe shouldn't even be there under normal circumstances, so if
it is there then the problem is what I suspected. Something (virus/malware
typically) hijacked cmd.exe. That something is now gone but the hijack is
still in place and needs to be removed.

Windows would never otherwise report "cannot file <full pathname to
executable>" when you just gave it a filename (no path), and Vista certainly
would just start searching.

The hijack is through a value named Debugger whose data (an executable
filename) is run instead of the original file (cmd.exe in this case), with
the original file passed as a parameter to the debugger.

You should just delete the cmd.exe registry key (the folder icon on the left
within regedit, that you highlighted before).
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.