User forums > Help

[Solved] How do I set the (Executing in [dir]) directory?

(1/1)

AngleWyrm:
I would like the compiled exe to run in a specific directory. Note that this is different from the exe being placed in that directory--which it does do.

Here is a paste from the build log:

Executing: "E:\Prog\CodeBlocks/cb_console_runner.exe" "d:\games\nethack\DeathSig.exe"  (in E:\Prog\Projects\DeathSig\.)
Process terminated with status 0 (0 minutes, 7 seconds)

The source code is in one place, and the exe is in another. How do I get the 'current directory' to be d:\games\nethack\ instead of e:\Prog\Projects\DeathSig\ when Code::Blocks executes the project?

mandrav:
Project->Properties->Targets->[select your target]->Working directory.

Navigation

[0] Message Index

Go to full version