別のアプリケーションからアプリケーションを起動したい。コード
`public static void RunProcess(string AppProcessName)
{
string[] Files = Directory.GetFiles(AppProcessName);
foreach (string file in Files)
{
if (System.IO.Path.GetExtension(file).Equals(".exe"))
{
System.Diagnostics.Process AppProcess = new System.Diagnostics.Process();
System.Diagnostics.ProcessStartInfo Info = new System.Diagnostics.ProcessStartInfo();
Info.FileName = file.Replace('/', '\\');
AppProcess.StartInfo = Info;
AppProcess.Start();
break;
}
}
}`
しかし、例外win32Exceptionが発生します