News:

As usual while waiting for the next release - don't forget to check the nightly builds in the forum.

Main Menu

Run an application in specific folder?

Started by MortenMacFly, May 22, 2006, 07:18:11 PM

Previous topic - Next topic

MortenMacFly

Dear all,

I've gotten a new project whose executable depends on several configuration and data files which are in sub-folders of the executables folder. The application uses relative path's to access these files. Now for development I don't want to make a copy of all those sub-folders (they are too big, about 1,5GB). But I also don't want to replace the current executable. Want I want to do is to run the new application in the directory where the old (!) application is.
Is this already possible? As far as I understand the application is called within the executables output directory.
If this is not possible: Do you agree that this would be a nice-to-have?
I'm already thinking about how to implement this, e.g. as another parameter in the "Run" (Select Target) dialog. This may require an additional parameter in the project file, similar to "<Option parameters="MyParam" />", so for example "<Option exec_path="D:\WhereEver\MyApp\Is" />".
How do you think about that?

With regards, Morten.

Edit: ...forget about it - I'm just blind. Thanks Defender... ;-)
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: [url="https://www.codeblocks.org/docs/main_codeblocks_en.html"]https://www.codeblocks.org/docs/main_codeblocks_en.html[/url]
C::B FAQ: [url="https://wiki.codeblocks.org/index.php?title=FAQ"]https://wiki.codeblocks.org/index.php?title=FAQ[/url]

Defender

Hello!

Not sure, if I understand you correctly, but there is an "Execution Working Dir" option under Project->Properties->Targets.
There you can specify, in which folder the app should execute.
Or am I missing something?  :)

Regards, Defender.

MortenMacFly

Quote from: Defender on May 22, 2006, 07:24:12 PM
Or am I missing something?  :)
...no. I just have overseen this. I'm using C::B such a long time now and it's still not long enough to realise new (cool!) features... :oops: :D :lol:
Thanks!!!
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: [url="https://www.codeblocks.org/docs/main_codeblocks_en.html"]https://www.codeblocks.org/docs/main_codeblocks_en.html[/url]
C::B FAQ: [url="https://wiki.codeblocks.org/index.php?title=FAQ"]https://wiki.codeblocks.org/index.php?title=FAQ[/url]

Defender

#3
Quote from: MortenMacFly on May 22, 2006, 07:29:05 PM
Quote from: Defender on May 22, 2006, 07:24:12 PM
Or am I missing something?  :)
...no. I just have overseen this. I'm using C::B such a long time now and it's still not long enough to realise new (cool!) features... :oops: :D :lol:
Thanks!!!
I'm glad I could help you ;)