Important: Please read the Qt Code of Conduct -

[solved]Running application with specified 'workspace'

  • Hello,

    I'm thinking about it for about 2 hours now and I guess this must be done in some easy way, but so far I couldn't find the solution...

    Here's my problem:
    I have 2 directories: A and B. I have an full access to directory A, so I place there my bin file, but I would like to place my binary in the dir B, where I cannot write anything.

    Is there any way to run my binary from dir A with the path to B?
    Maybe it is silly question or maybe I asked google for a wrong term...

    with best regards,

  • Moderators

    You just need to set the working directory. This is easily done in Qt and all operating systems (by running an app from B like this: ./../A/myApp).

  • That's exactly what I was looking for. Thank You very much, wielkie dzięki :)

  • Moderators

    You're welcome :-) Miłego dnia.

Log in to reply