How to execute an exe with an unknown path ?

Hi,

I’m trying to execute an other exe file from Unreal.

With that command example, it works very well :

FPlatformProcess::CreateProc(TEXT(“C:\Users\Cero\Desktop\Test.exe”), nullptr, true, false, false, nullptr, 0, nullptr, nullptr)

Now my question is, how do I do the same thing but on a machine where I won’t be able to know in advance the path of the exe ?

I was thinking about adding that exe file in the build folder so that I can maybe retrieve the path of the unreal build exe and from there find the other exe I’m looking for.

Is there a command in Unreal that would allow me to get the path of the unreal app executable ? Or would you have a better idea on how to do this with a minimal user involvement?

Thanks

1 Like