help with cmd.exe

  • Thread starter Thread starter godeepakm
  • Start date Start date
G

godeepakm

Hello all,

When i goto run and type in cmd or cmd.exe i get the following error
....
cmd/cmd.exe is not a valid Win32 application.
It was working earlier but some problem occured when in one of the
command window i tried to execute the following command "cmd > cmd"


Also when i enter the complete path i.e. C:\WINDOWS\system32\cmd.exe
everything works fine.

could anyone help out with this issue.

Thanks for your help.

Deepak
 
You overwrote the file with garbage most likely (allthough you had to do a little more than what you said). Extract a new version. Type msconfig in Start Run, Extract File.
"cmd > cmd" Runs cmd and overwrites cmd with the screen output.
 
Right-click My Computer > Properties > Advanced > Environment Variables.

Make sure you have an entry called Path that contains
%SystemRoot%\system32;%SystemRoot%;.
 
Back
Top