Server 2008 won't run executables from CMD prompt without .exe extension
Posted
by
Dan
on Server Fault
See other posts from Server Fault
or by Dan
Published on 2011-03-09T19:31:32Z
Indexed on
2011/03/10
16:12 UTC
Read the original article
Hit count: 288
server
|windows-server-2008
On one of our production server 2008 boxes, I cannot run executables from a CMD prompt without supplying the full filename, including the '.exe' extension. For example, when running "java" produced the usual "is not recognized as an internal or external command" message, I assumed I had borked the path and/or java_home variables. However, even navigating to the %java_home%\bin directory and typing "java" produced the same error. If I type "java.exe" instead, all works perfectly.
The problem does not only affect java.exe. Even Microsoft executables suffer the same problem -- ping fails, ping.exe works; ipconfig fails, ipconfig.exe works; manually created batch file 'test' only works when invoked explicitly as 'test.bat'.
Any bright ideas?
© Server Fault or respective owner