- Home /
Question by
sugitashannon · Mar 27, 2015 at 05:08 PM ·
androidioswindowsmac
How to get result message from System.Diagnostics.Process
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.
Comment
Your answer
Follow this Question
Related Questions
how to create an IOS with a Windows machine. 4 Answers
Can I use platform-specific UIs 1 Answer