I can no longer launch programs just by typing the program name in a command window. For instance, typing "notepad" and then enter gives me "bad command or filename". If I recall correctly Windows XP would automatically pick up the executable. If I type "notepad.exe" and hit enter, then notepad starts as expected. Did something change on my system, or did I just remember wrong?


did your PATHEXT environment variable get overwritten?

  • certainly looks like the "groovy" programming language is the only extension in there. – nathan Nov 2 '09 at 4:37
  • Yup. that was it. For some reason the groovy installation overwrote my PATHEXT. I corrected the problem and everything works as it should. Thanks! – nathan Nov 2 '09 at 4:39
  • Might want to contact Groovy and check if they have a bug. They shouldn't be changing PATHEXT, they should be using assoc.exe and filetypes. – Jim Deville Nov 2 '09 at 4:42

For your help the initial value of PATHEXT is: .COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC .

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.