DOSBox-X application works if started in the same directory as the binary, but not from elsewhere

Solution 1:

I kept on working on this and found a way to start the application from the folder. There was an option in the configuration file of dosbox to set the target directory to the program's directory. That worked.