i want to find where the app that i am running in which folder is, like detect the path. I want to do this because i want to run some files that are in the folder with the program, so you can open the files in the path that you want and it would work. Thanks in advance!
Asked
Active
Viewed 80 times
0
-
3[`std::filesystem::current_path()`](https://en.cppreference.com/w/cpp/filesystem/current_path). – Quentin May 05 '20 at 16:06
-
2Does this answer your question? [How do I get the directory that a program is running from?](https://stackoverflow.com/questions/143174/how-do-i-get-the-directory-that-a-program-is-running-from) – Michael May 05 '20 at 16:06
-
Does this answer your question? [Get path of executable](https://stackoverflow.com/questions/1528298/get-path-of-executable) – drescherjm May 05 '20 at 16:18