An application does not know where your files reside. It could know but it would take a ridiculous long time ton find out where the file Bla.js is. And if more than one, how to differ.
Windows does not know where your applications reside. It could know but it would take a ridiculous long time ton find out where the file mongo.exe is. And if more than one, how to differ.
The solution for Windows to find the .exe is:
- You either set your PATH in Windows so that it can find the application --OR–
- Enter the full path name of the .exe file --OR–
- Like you did cd to the appropriate directory
The solution for the application to find the config file is:
A. Enter the full path name of the config file --OR–
B. cd to the directory that contains the config file
If you chose 1. or 2. you have to do A. unless you did B.
If you chose 3. you have to do A.