Run named.exe in a subdirectory in windows cmd

I feel stupid asking about it, but here. On linux / mac, you can run the executable in the shell by simply writing its name. Can you do something like this on the windows command line?

Example: I am in the dir directory. I want to run the a.exe file in dir/subdir without changing the directory to subdir or write subdir/a.exe . Is it possible?

+4
source share
3 answers

It is possible. All you have to do is make sure that the directory where a.exe is located is included in path .

-3
source

You can use one of the following actions:

  • "subdir/a.exe"
  • subdir\a.exe
+12
source

Do you mean that you do not need double quotes "subdir/a.exe" ? In any case, if you go to the backslash, it will work; i.e.

subdir\a.exe

0
source

Source: https://habr.com/ru/post/1213545/


All Articles