Qt Creator: Run command before running executable?
-
I'd like to run a command (basically deleting a file) every time before I start a certain executable from Qt Creator (Run, not necessarily debug).
Is this possible with Qt Creator?
-
@Asperamanca
I don't see where Creator allows a "pre-run" command, that would be nice.Can you utilise Specifying a Custom Executable to Run to perhaps execute a little script which deletes the file and then runs the real executable?
-
-
@Asperamanca
An alternative might be to make your executable code itself delete such a file as the very first thing it does? You might even do that only if compiled with a certain#define
/command-line argument/environment variable setting? -
@Asperamanca said in Qt Creator: Run command before running executable?:
basically deleting a file
What is that file? Is this a build artefact generated during the build?