In my VS project I am defining the path to a file that I want to read relative to the location of the compiled executable of my application with cd..//..//
and so on. This does work perfectly inside debug and release configurations in Visual Studio. However, if I directly run the generated executable, the file path does not point to the actual file. It seems like cd
is something else, but I am not sure what it actually points to.
How should I define my path to a file relative from the generated executable?