User forums > General (but related to Code::Blocks)

Setting PATH for run

(1/1)

steven:
Hello

Is it possible to set the the PATH environment variable on a per-project basis ?

So that I can run the .exe (containing project-version specific resource files such as ogre.cfg, image.bmp, etc) and use the version-specific library .dll stored in ANOTHER directory.

Of course, I could set the global environment but that would influence every other executable. (Or copy all the .dll in the root project... )

Perhaps a new field in : Project->Set execution parameters...
where you can enter pre-execution command such as (WinXP) :
"set PATH=%PATH%;c:\library"


Thanks

rickg22:
You could as well run codeblocks from a batch file *AFTER* setting the path. :)

Anonymous:

--- Quote from: rickg22 ---You could as well run codeblocks from a batch file *AFTER* setting the path. :)
--- End quote ---


Hum.. yes but...
With several project in a workspace (GameEngine_0_1 and GameEngine_0_2) , I usually use different libraries with each engine (Ogre-1_0 for the first and Ogre-1_0_2 for the second).

Doing it this way would affect each project and not per-project.

I "just" hope to run a command before the executable.

rickg22:
I'm afraid you'll have to submit a "Feature Request" at sourceforge. The link's on the left of this webpage.

Navigation

[0] Message Index

Go to full version