C#怎么调用krapno的批处理文件的,我要在上传图片的时候调用bat文件生成全景图。有没有大佬给下提示,小弟万分感激。
System.Diagnostics.Process p = new System.Diagnostics.Process();
p.StartInfo = new System.Diagnostics.ProcessStartInfo(krpanoPath, string.Format("makepano -config=templates/vtour-vr.config {0} ", string.Join(" ", imgs)));
p.StartInfo.UseShellExecute = false;
p.StartInfo.RedirectStandardInput = true;
p.Start();
p.StandardInput.WriteLineAsync("y");
p.StandardInput.AutoFlush = true;
p.StartInfo = new System.Diagnostics.ProcessStartInfo(krpanoPath, string.Format("makepano -config=templates/vtour-vr.config {0} ", string.Join(" ", imgs)));
p.StartInfo.UseShellExecute = false;
p.StartInfo.RedirectStandardInput = true;
p.Start();
p.StandardInput.WriteLineAsync("y");
p.StandardInput.AutoFlush = true;