Code::Blocks Forums

User forums => Help => Topic started by: AngleWyrm on November 04, 2007, 12:39:52 pm

Title: [Solved] How do I set the (Executing in [dir]) directory?
Post by: AngleWyrm on November 04, 2007, 12:39:52 pm
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?
Title: Re: How do I set the (Executing in [dir]) directory?
Post by: mandrav on November 04, 2007, 02:45:56 pm
Project->Properties->Targets->[select your target]->Working directory.