System object - run application problem.

Welcome to our brand new Clickteam Community Hub! We hope you will enjoy using the new features, which we will be further expanding in the coming months.

A few features including Passport are unavailable initially whilst we monitor stability of the new platform, we hope to bring these online very soon. Small issues will crop up following the import from our old system, including some message formatting, translation accuracy and other things.

Thank you for your patience whilst we've worked on this and we look forward to more exciting community developments soon!

Clickteam.
  • Hi all

    I think my problem relates to the system object execute an external application but slightly indirectly i think.

    I am running an exe on an event that all triggers fine however the application gives an error saying that it can't find the files it uses in my applications directory.

    Is this because my application is trying to run it from my application's folder or is it that the application i'm trying to run has some way of checking where its being initialised from and tries to open files from there, as maybe some sort of copy protection or something?

    Is this familiar to anyone?

    I've asked the developers of the app as maybe there is a command i use on the exe or its a bug on their end or something.

    Thanks for reading.

    Edited once, last by Zem: Typing nonsense because of Flu (October 15, 2015 at 5:22 PM).

  • When you run an application, it has a "working directory" that acts as its home - see Please login to see this link. for a full explanation. It sounds like what might be happening is that when you run the external application regularly, its working directory is set to the directory where the application resides (the usual way of doing it), but when you run it from the System object, it tries to run it with your application's folder as the working directory.

    Is setting the working directory an option in the System object?

    Please login to see this link.
    Please login to see this link.

  • That's exactly it thanks DavidN but unfortunately I can't set the working directory unless it's something I can pass to the exe as a command which I guess probably breaks some security thing in Windows if you know what I mean.

  • Yes, this is possible. DavidN is correct, that is the issue here. I do know the answer as I figured this out before, let me jiggle my brains and get back to you!

    Game Launcher Creator V3 - Please login to see this link.
    Bespoke Software Development - Please login to see this link.
    Learn Clickteam Fusion 2.5 - Please login to see this link.

    Danny // Clickteam

  • No worries, there was just a few things I wanted you to try. Let me find one of my old projects to shed some more light. Might get to the morning mate...

    Game Launcher Creator V3 - Please login to see this link.
    Bespoke Software Development - Please login to see this link.
    Learn Clickteam Fusion 2.5 - Please login to see this link.

    Danny // Clickteam

  • Ah ok, ordinarily i would've been free to join but couldn't sorry,

    If you want to pm me some things I'd love to give them a try, do you think I can pass a command to the exe maybe? Anyway I'll wait, thanks again for the interest!

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!