I have an .exe file that when launched generates a .json file with some data in it. What I noticed is that when I launch that .exe through FlexSim (no matter if through rundocument("open") or runprogram("cmd ...")), it executes, but fails to save the output file UNLESS the FlexSim file resides in the same folder as the .exe - moving the FlexSim file to a parent folder or a subfolder results in being able to launch the .exe successfully, but without the final effect of generating the .json.
Is there any workaround to it other than trying to place the .exe and .fsm in the same location?
I am attaching a sample FlexSim file + a dummy .exe that generates a .json file containing the current timestamp to exemplify the issue.
Exe launched from FS cannot save files unless launched from the same folder.fsm