O'Reilly logo
  • Jamie Robillard thinks this is interesting:

> mongod.exe


Cover of MongoDB: The Definitive Guide, 3rd Edition


Despite the mongodb documentation a file extension is not required to invoke an executable on MS Windows. Though it should be specified in the Path to executable when setting up a service.

On 'nix systems if a file has an extension it must be given to invoke the executable. This is why 'nix Best Practice is to never give an executable a file extension. With the exception of Mono as .Net's ECMA specification requires the .exe to be present. In this case you would use a symbolic link to hide the fact that the .exe exists or invoke it via a script.