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?
You can using one of the following:
"subdir/a.exe"
subdir\a.exe
You mean you don't want the double-quotes of "subdir/a.exe"
? Anyway, if you change to a backslash, it does work; i.e.
subdir\a.exe
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With