News:

Accounts with zero posts and zero activity during the last months will be deleted periodically to fight SPAM!

Main Menu

Setting PATH for run

Started by steven, July 06, 2005, 04:59:56 PM

Previous topic - Next topic

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: rickg22You could as well run codeblocks from a batch file *AFTER* setting the path. :)

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.