Page 1 of 1

Clobbered cmd.exe!

Posted: 11 Apr 2021 19:44
by dbenham
WTF :shock: :!: :evil:

I just discovered my cmd.exe is suddenly missing, as are all my utility files that I keep in d:\utils and include in my PATH. God only knows what else is amiss. I did manage to find a copy of cmd.exe in Windows\SysWOW64.

I think it happened a couple weeks ago when my computer suddenly whacked out, and I had to restart. At that time a bunch of music production software that I use had lost all their settings, and I had to restore the settings - not too bad. But I hadn't done any batch in a while (Lately I've been obsessing over synthesizers - specifically VCV Rack - a software emulation of the Eurorack standard.)

But then today I went to run cmd.exe and the shortcut was dead!

Here is my system at the moment

Code: Select all

 INFO.BAT version 1.5
--------------------------------------------------------------------------------
Windows version        :  Microsoft Windows [Version 10.0.19041.867]
Product name           :  Windows 10 Home, 64 bit
Performance indicators :  Processor Cores: 8      Visible RAM: 16577856 kilobytes

Date/Time format       :  (mm/dd/yy)  Sun 04/11/2021  21:28:54.87
__APPDIR__             :  C:\Windows\SysWOW64\
ComSpec                :  C:\WINDOWS\system32\cmd.exe
PathExt                :  .COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC
Extensions             :  system: Enabled   user: Disabled
Delayed expansion      :  system: Disabled  user: Disabled
Locale name            :  en-US       Code Pages: OEM  437    ANSI 1252
DIR  format            :  04/05/2021  07:16 PM     2,818,572,288 pagefile.sys
Permissions            :  Elevated Admin=No, Admin group=Yes

                          Missing from the PATH environment: C:\Windows\SysWOW64\wbem
                          Missing from the PATH environment: C:\Windows\SysWOW64\WindowsPowerShell\v1.0
                          Missing from the tool collection:  debug
Any suggestions on how to look for more damage, or what my next step should be?

Could McAfee have somehow gotten confused and deleted/isolated some files? Maybe some malware? Very weird.


Dave Benham

Re: Clobbered cmd.exe!

Posted: 12 Apr 2021 01:52
by ShadowThief
If you haven't installed anything weird recently, it may be worth checking your hard drive's health. Download a disk health program like CrystalDiskInfo (https://crystalmark.info/en/software/crystaldiskinfo/) and make sure everything looks normal (or in this case, that all the dots are blue).

Re: Clobbered cmd.exe!

Posted: 12 Apr 2021 18:18
by Squashman
Any chance you can restore to a previous restore point?

I know on previous versions of Window the backup functionality blew chunks but it has worked flawlessly for me since I started using it with Windows 7. It has saved me butt a few times when drives failed.

Re: Clobbered cmd.exe!

Posted: 12 Apr 2021 19:05
by Compo
Have you tries the basics, as administrator, before resorting to a System Restore?

Code: Select all

sfc.exe /ScanNow

Code: Select all

Dism.exe /Online /Cleanup-Image /CheckHealth

Code: Select all

Dism.exe /Online /Cleanup-Image /ScanHealth

Code: Select all

Dism.exe /Online /Cleanup-Image /RestoreHealth

Re: Clobbered cmd.exe!

Posted: 14 Apr 2021 11:41
by IcarusLives
Compo wrote:
12 Apr 2021 19:05
Have you tries the basics, as administrator, before resorting to a System Restore?

Code: Select all

sfc.exe /ScanNow

Code: Select all

Dism.exe /Online /Cleanup-Image /CheckHealth

Code: Select all

Dism.exe /Online /Cleanup-Image /ScanHealth

Code: Select all

Dism.exe /Online /Cleanup-Image /RestoreHealth
He's unable to access cmd.exe

Re: Clobbered cmd.exe!

Posted: 14 Apr 2021 12:08
by Compo
IcarusLives wrote:
14 Apr 2021 11:41
He's unable to access cmd.exe
I'm sorry IcarusLives, but I clearly read the opening post, where it was stated that there was a copy of cmd.exe in the x86 application location, \SysWOW64.

Both sfc.exe and dism.exe also have x86 versions in \SysWOW64, hence my advice.

Re: Clobbered cmd.exe!

Posted: 14 Apr 2021 19:43
by Squashman
IcarusLives wrote:
14 Apr 2021 11:41
He's unable to access cmd.exe
All those commands are executables. You can open up a run box and execute them. WinKey + R.

Re: Clobbered cmd.exe!

Posted: 16 Apr 2021 15:36
by jfl
Or you can open a PowerShell. You don't need cmd for that. Then everything will be usable normally, except batch files.