Somehow it seems that my windows 7 cmd prompt is only working correct sporadically. If I open a new cmd I can nearly always execute applications within PATH (sometimes this doesn't work either). But after a few executions the command which worked previously stops working and cmd is telling me:
The command "java.exe" is misspelled or couldn't be found (translated from german)
After opening a new cmd, the problem is gone. Can someone explain why this happens and how I can solve this?
Microsoft Windows [Version 6.1.7601] Copyright (c) 2009 Microsoft Corporation. Alle Rechte vorbehalten. C:\Users\philipph>notepad.exe C:\Users\philipph> Second terminal Microsoft Windows [Version 6.1.7601] Copyright (c) 2009 Microsoft Corporation. Alle Rechte vorbehalten. C:\Users\philipph>notepad.exe Der Befehl "notepad.exe" ist entweder falsch geschrieben oder konnte nicht gefunden werden.
cmd
instance that suddenly forgets its environ, but ones created afterwards work fine again.cmd.exe
when it gets to run there. So checkPATH
before and after running the commands/scripts and then see which one is causing the issue and fix the script/program or wrap it into a script that will retain the environment ...