run named .exe in subdirectory in windows cmd

cmd

Solution

It is possible. All you need to do is ensure that the directory in which `a.exe` resides is included on the `path`.

Problem

I feel stupid for asking this, but here goes. In linux/mac, you can run an executable file in the shell, simply by writing its name. Can you do something similar in windows command line? Example: I am in directory `dir`. I want to run a file `a.exe` in `dir/subdir` without changing directory to `subdir`, or writing `subdir/a.exe`. Is this possible?

Original source

Related problems