Windows 8 CMD commands not working

For some reason on my Windows 8 machine stopped accepting commands from CMD if opened through the start menu or shortcut. Every command I type it will state, "command not recognized" even ones such as ping. Everything looks good, I mean it's under the C: windows > system32 path.

If I search for CMD the system32 folder and open it directly that way, it will accept commands. Yet nothing has changed, it's still the normal correct path when opening it up. I have admin privileges when I'm opening it up too just to clarify.

If I right click the CMD from the System32 folder and create a shortcut on the desktop, it creates it, but it still has the issues. The onyl way it works is opening the origional CMD file in the system32 folder.

Why would this be? I'm quite tech savvy and don't see any reasons why this would be happening. I use CMD a lot, and like a a quick way to open it other than searching for it in the system 32 folder every time.
LVL 4
Pancake_EffectAsked:
Who is Participating?
 
McKnifeConnect With a Mentor Commented:
Hi.

This sounds as if the variable path is corrupted, missing or modified.
Please edit the system variable path to be
%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;%SYSTEMROOT%\System32\WindowsPowerShell\v1.0\;%SystemRoot%\System32\Windows System Resource Manager\bin;
0
 
Pancake_EffectAuthor Commented:
Where do I edit the system variable paths?
0
 
McKnifeConnect With a Mentor Commented:
Hit the windows key together with the pause key and a windows will pop up. Select adv. system settings and at the bottom you'll find "env. variables". The variable is named "path". It's a system variable so you will find it in the lower half of the next dialogue.
0
 
Pancake_EffectAuthor Commented:
Worked great! Thank you very much! For some reason I had Java as the path, think it was when I was messing with something in regards to minecraft a while back.

Again thanks for the help!
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.