Is there a way to execute external .exe files from unreal?

i’m trying to execute an external .bat file from my project, is there a way to do it with blueprint or C++?

2 Likes

Yes you can:

  • FPlatformProcess::CreateProc(TEXT("C:\\Users\\Cero\\Desktop\\Test.exe"), nullptr, true, false, false, nullptr, 0, nullptr, nullptr);

Good luck!

If this answered your question, please upvote and mark it answered so we can close this out appropriately.

6 Likes

Thank you a lot!, but i’m really bad with code c++, would be a way to use it with blue print?!

2 Likes

Look at Rama’s Victory Plugin. I think there’s something in there for BP users. But out of the box, no there is not.

If this resolved your question, please upvote my answer and mark it as the answer so we can close this out.

1 Like

Thank you a lot by your time and support!

1 Like

So I can execute the programs I want, is there a way to make them display in-game instead of on my second screen? I’ve tried using different User Interface widgets but so far no luck. any help is appreciated, thanks!

1 Like

i have the same issue here. i have compiled my matlab program as .exe and i want to open and run it in ue4 project package. any help is appreciated, thanks in advance!

1 Like

i have the same issue here. i have compiled my matlab program as .exe and i want to open and run it in ue4 project package. any help is appreciated, thanks in advance!

1 Like

i have the same issue here. i have compiled my matlab program as .exe and i want to open and run it in ue4 project package. any help is appreciated if you solved your problem, thanks in advance!

1 Like

I was able to open the exe file but not inside my unreal application, for what i needed in the past it worked greatly. i used the Rama’s plugin (39) Rama's Extra Blueprint Nodes for You as a Plugin, No C++ Required! - Blueprint Visual Scripting - Unreal Engine Forums he made a node that is Create Process where you can put the file path and it will open the exe.

1 Like

thanks a lot! @Ricardo

1 Like

node name?

1 Like

I already found it, is Victory Create Proc

@Estape can you send me some screen shoots of the node please?

thank you @Estape. Is that okay if you can add some more or if there is a tutorial on it. I have a matlab application I want to run it when the character presses a key from the keyboard. Then back to the virtual world. So I need to open it and then after the result from the application get back to UE4. I hope you got my point.

sorry , i am not really sure how to use the node,

Full Path Of Program to Run: my file(bat.exe…) Path?

and what`s Commandline Arg Should I to put in?

thanks

269390-victory-create-proc.png

@HELZWITCH
Have you figure it out?

Hello! Try to reach Rama, as i asked him and he made this node in his plugin he may have a solution for what you need!

Cheers!