The situation is that I have a portable application that needs to have set environment variable. Other way it tries to set it's settings in user program data dir.

To avoid running the executable in non-portable mode (to avoid allowing it to run without any parameters) I erased the file's ".exe" extension, but then I cannot run it not only by mouse (which I want) but also through start command.

Is there any way to run such executable file that has no exe extension ?