Author Topic: [Solved] How do I set the (Executing in [dir]) directory?  (Read 3270 times)

Offline AngleWyrm

  • Multiple posting newcomer
  • *
  • Posts: 15
[Solved] How do I set the (Executing in [dir]) directory?
« 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?
« Last Edit: November 05, 2007, 10:04:37 pm by AngleWyrm »

Offline mandrav

  • Project Leader
  • Administrator
  • Lives here!
  • *****
  • Posts: 4315
    • Code::Blocks IDE
Re: How do I set the (Executing in [dir]) directory?
« Reply #1 on: November 04, 2007, 02:45:56 pm »
Project->Properties->Targets->[select your target]->Working directory.
Be patient!
This bug will be fixed soon...