Can't get an external program to run from a different directory as the script, but use the script's directory as it's working dir.

Recommended Posts

sciosalvi 0

sciosalvi 0

There's an external app that I'm running that, when run with Run($app_path,@ScriptDir), it just runs with the directory that it was extracted to as it's working directory.

Any way to solve this? I can't pass the problem to the running app, it's actually a suite of different apps for which we have no way of reprogramming, it's a legacy system that for now can't be upgraded.