Hello
I call .exe file via Unity.
It is my code.
System.Diagnostics.ProcessStartInfo info = new System.Diagnostics.ProcessStartInfo();
info.FileName = program_name;
info.WorkingDirectory = file;
info.Arguments = command;
if(windowtype_hidden){
info.WindowStyle = System.Diagnostics.ProcessWindowStyle.Hidden;
}
try{
process = System.Diagnostics.Process.Start(info);
}catch(System.ComponentModel.Win32Exception w){
Debug.Log("Not Found." + w);
message = "Not Found.";
return_num = 0;
return false;
}
But, I don't know how to get result message from the System.Diagnostics.Process.
Could you tell me how to get?
Later, I will develop for Mac and Windows and Android.
↧