hello,
I want to open an external .exe using unity .
I have the following script but it does’t work if I play it on an other pc.
How can i change this code to open it at any place ( the source documents of the external application are within my folder where also assets, libary , assetsbundel, etc are in )
It works perfect local but not on other computers
my code :
import System.Diagnostics;
var stringPath = “C:\Users\blabla\blabla\blabla\myApplication.exe”;
var myProcess = new Process();
myProcess.StartInfo.FileName = “myApplication.exe”;
myProcess.StartInfo.Arguments = stringPath;
myProcess.Start();
I have also tried this but whit the same problem :
import System.Diagnostics;
var stringPath = “myApplication.exe”;
var myProcess = new Process();
myProcess.StartInfo.FileName = “myApplication.exe”;
myProcess.StartInfo.Arguments = stringPath;
myProcess.Start();
Can someone help me please.
Thanks a lot