Solved

Command Prompt does show up on Window XP

Posted on 2010-11-27
15
456 Views
Last Modified: 2012-05-10

From my Window/XP   start->accessories->Command Prompt , I can start a command prompt, even though the icon seem to be there (changed to a DOS application icon). Plus,  a embedded command:
start /wait /b xcopy ..\\..\\*.*  C:\\TEMP_and_BACKUP\\ /c /d /s /e /k /y /z /i

in a DOS executable seems get ignored, while executable seems running fine.

Also from start  RUN/cmd the command prompt can get started either.

I remember it was working before .. anyone tell me why it failed  and provide a solution

Thanks

0
Comment
Question by:zzhang2006
  • 5
  • 4
  • 2
  • +4
15 Comments
 
LVL 52

Expert Comment

by:Bill Prew
ID: 34223208
In the first line of your posting:

From my Window/XP   start->accessories->Command Prompt , I can start a command prompt

did you really mean to type:

From my Window/XP   start->accessories->Command Prompt , I can't start a command prompt

~bp
0
 
LVL 52

Expert Comment

by:Bill Prew
ID: 34223217
Does the following file exist?

C:\Windows\System32\cmd.exe

~bp
0
 
LVL 5

Expert Comment

by:Matt Davies
ID: 34223400
If I read into this that you cannot start a command prompt by any route and do not get any message when you try to run it then you need to virus check your pC.

There are a couple of virii that disable the command prompt
0
 
LVL 1

Author Comment

by:zzhang2006
ID: 34223578
Sorry,  I mean I can not start the command prompt
0
 
LVL 1

Accepted Solution

by:
zzhang2006 earned 0 total points
ID: 34223584
Billrew,  
In fact I can find cmd.exe in   Windows/System32/    where can I get it?



0
 
LVL 68

Expert Comment

by:Qlemo
ID: 34223589
Try if running a   sfc /scannow   helps to get it back.
0
 
LVL 52

Expert Comment

by:Bill Prew
ID: 34223670
If you can't find c:\windows\system32\cmd.exe that is troubling.  Try SFC as mentioned above and see what that has to say.

Also, are you on a 64 or 32 bit version of Windows?

When did this problem begin, was it right after you loaded some other software?  I'd be concerned that something else unwanted may be going on on your system.

Have you run some virus and malware scans?

~bp
0
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 
LVL 38

Assisted Solution

by:BillDL
BillDL earned 125 total points
ID: 34223890
Open the following folder in Windows Explorer:

C:\Windows\System32\dllcache

If CMD.EXE is in there, then something is badly wrong because deleting or moving C:\Windows\System32\cmd.exe SHOULD have caused it to be replaced in that folder by a good backup copy from the "dllcache" folder.  There should be something like 2600 files in that DllCache folder.

Try running SFC as suggested above and let us know what happens.
0
 
LVL 26

Expert Comment

by:pony10us
ID: 34233981
It appears that "Command Prompt" properties have been changed to do a complete backup of the C: drive to a folder C:\\TEMP_and_BACKUP.

The target should be %SystemRoot%\system32\cmd.exe.

A quick way to test if CMD is there is to do a Start/Run, type cmd in the window and press enter. It should open a command prompt window. If not then you should follow the instructions given by others.

The issue I see with billprew's test is that even though it is extremely rare, I have seen variations on installations resulting in some odd file structures such as C:\WINNT instead of C:\WINDOWS.

I am still a bit concerned that it is trying to do a complete backup of the C: drive using xcopy to a folder on the C: drive everytime.
0
 
LVL 3

Expert Comment

by:Kirthy2010
ID: 34237894
Check wether the cmd file exit on your PC ?
C:\Windows\System32\cmd.exe

Create a shortcut and give the target location as %windir%\system32\cmd.exe or cmd.exe

If still not running check the compatablity option of the shortcut created.
0
 
LVL 1

Author Comment

by:zzhang2006
ID: 34259511
problem solved
0
 
LVL 52

Expert Comment

by:Bill Prew
ID: 34260017
I for one would like to understand how the problem was resolved...

~bp
0
 
LVL 26

Expert Comment

by:pony10us
ID: 34260346
I agree with billprew.  What was the solution?
0
 
LVL 1

Author Closing Comment

by:zzhang2006
ID: 34289861
problem sovled thanks
0
 
LVL 52

Expert Comment

by:Bill Prew
ID: 34291080
Yes, we got that you solved the problem, we are just trying to learn from your work, please share what the solution to your problem was.

~bp
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Preface I don't like visual development tools that are supposed to write a program for me. Even if it is Xcode and I can use Interface Builder. Yes, it is a perfect tool and has helped me a lot, mainly, in the beginning, when my programs were small…
VALIDATING DATES One method of validating dates is to jam the date into the DATE command and see if it accepts it by examining the system's errorlevel value. A non-zero result indicates failure. A typical example might look something like the fol…
The goal of this video is to provide viewers with basic examples to understand opening and writing to files in the C programming language.
Video by: Grant
The goal of this video is to provide viewers with basic examples to understand and use for-loops in the C programming language.

932 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now