Author Topic: Run an application in specific folder?  (Read 5397 times)

Offline MortenMacFly

  • Administrator
  • Lives here!
  • *****
  • Posts: 9723
Run an application in specific folder?
« on: May 22, 2006, 07:18:11 pm »
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... ;-)
« Last Edit: May 22, 2006, 07:27:27 pm by MortenMacFly »
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: https://www.codeblocks.org/docs/main_codeblocks_en.html
C::B FAQ: https://wiki.codeblocks.org/index.php?title=FAQ

Offline Defender

  • Multiple posting newcomer
  • *
  • Posts: 49
Re: Run an application in specific folder?
« Reply #1 on: May 22, 2006, 07:24:12 pm »
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.

Offline MortenMacFly

  • Administrator
  • Lives here!
  • *****
  • Posts: 9723
Re: Run an application in specific folder?
« Reply #2 on: May 22, 2006, 07:29:05 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: https://www.codeblocks.org/docs/main_codeblocks_en.html
C::B FAQ: https://wiki.codeblocks.org/index.php?title=FAQ

Offline Defender

  • Multiple posting newcomer
  • *
  • Posts: 49
Re: Run an application in specific folder?
« Reply #3 on: May 22, 2006, 07:29:55 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 ;)
« Last Edit: May 22, 2006, 07:35:29 pm by Defender »