Quantcast
Channel: Questions in topic: "ios"
Viewing all articles
Browse latest Browse all 4709

How to get result message from System.Diagnostics.Process

$
0
0
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.

Viewing all articles
Browse latest Browse all 4709

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>