Run named .exe in subdirectory in windows cmd


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?

Best Solution

You can using one of the following:

  • "subdir/a.exe"
  • subdir\a.exe