Jump to content

cmd is not a valid win32 application


xpmaniac4ever

Recommended Posts

After I installed Microsoft`s Monad Shell beta 3, when I try to run cmd it says "cmd is not a valid win32 application". If I run cmd.exe it works. This happens to all exe`s on my computer. After I uninstall Monad Shell, the problem remains. The problem is that all my batch files refuse to work now. Any ideas how can I fix this ?

Link to comment
Share on other sites


The cmd file must be corrupt, try and get it of your XP cd, it may be named cmd.ex_ , just run a search on the xp cd for cmd you should find it. If it is ex_ then you need to rename the extension to something like rar or zip then extract the file because obviously you cant use the dos based expand program.

Link to comment
Share on other sites

  • 4 weeks later...

Open ur System32 folder located at your windows folder, you should find 2 CMD files, (cmd.exe, cmd.com), that cmd.com shouldnt be there, just delete it with brave heart ;) try it now :w00t:

* this in case only cmd is not working at run *

Edited by NaelAmer
Link to comment
Share on other sites

  • 4 weeks later...

Hi guys,

Just wanted to say thanks to NaelAmer for that solution. This problem has been bugging me for months. Even up reloading XP just to get over it - in my case it was Regedit as well as CMD that wouldn't work.

Major bottomer!

Anyway just as you suggested, had a look in system32 and indeed there were 5 or 6 zero-byte .com files (including ping and tracert). Knock them off and all is well.

Any ideas what might have caused this?? After reloading XP the problem was resolved (obviously) but then just seemed to pop back by magic.

Thanks again,

Gwerjo

Link to comment
Share on other sites

dude if you have a cmd.com in ur system32 then you will most likely have spyware on your pc. i would suggest you run spybot, adware and trendmicros online housecall antivirus scanner immediately.

Link to comment
Share on other sites

  • 4 months later...
After I installed Microsoft`s Monad Shell beta 3, when I try to run cmd it says "cmd is not a valid win32 application". If I run cmd.exe it works. This happens to all exe`s on my computer. After I uninstall Monad Shell, the problem remains. The problem is that all my batch files refuse to work now. Any ideas how can I fix this ?

thanks a lot

Link to comment
Share on other sites

  • 3 months later...

just noticed this thread and i was going to suggest looking for 0 byte files in system32 and also seeing if the sys32 directory was hidden, but it seems you found them.

iv seen this before and as far as i rememeber it was nothing to do with corrupt files and was a virus of somesort, could just be coincidence that you installed that theme at the same time, or the theme itself may have had some sort of malware in it.

just out of interest were you running anti-virus at the time?

Edited by eyeball
Link to comment
Share on other sites

  • 1 month later...

The problem seems to be related to the environment variable PATHEXT not being set. It should look like

PATHEXT=.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH

Try this: SETX -m PATHEXT .COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH

exit that command prompt, and restart another one. See if the problem still happens.

W

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...