User forums > Help
Working directory appears to change when I run the .exe file.
(1/1)
Sirplentifus:
I made a program that opens a file, which is in the same folder as the project. When I run the program from within Code::Blocks, everything is fine (the working directory is set to the project directory)
However, when I run the actual .exe file, it fails to load the file. If I move the file to the directory of the .exe, it works now, but the same error now occurs when I run the program from within Code::Blocks.
It's as if the working directory is different when I run the program from the .exe... How do I set that working directory?
Thanks in advance :D
stahta01:
Project -> Properties
Tab: "Build Targets"
Select correct "Build Target" in left hand column.
Box: "Execution Working Directory"
Tim S.
Navigation
[0] Message Index
Go to full version