- Joined
- Jul 5, 2021
- Messages
- 734
- Reaction score
- 1,139
- Points
- 108
- Location
- Cislunar Space
- Website
- www.orbiter-forum.com
So I am working on a project and need to use the ShellExecute() function to open a file (PDF) from inside my vessel’s code. It works just fine if I use an absolute path to the file, but that means it will only work in my orbiter install. The file is located in orbiter‘s Docs subfolder. I was wondering if there is any way to find the absolute path to the orbiter installation’s root directory when my vessel is loaded and dump it to a char* variable. To be clear, I am not trying to get orbiter to open the PDF, I want it to open in whatever application the user has set up to view PDFs by default.
Any help is appreciated,
Max-Q
Any help is appreciated,
Max-Q