Advertisement
Guest User

Untitled

a guest
Jun 26th, 2017
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.84 KB | None | 0 0
  1. Process proc = new System.Diagnostics.Process();
  2. proc.StartInfo.FileName = @"cmd.exe";
  3. proc.StartInfo.Arguments = "/K cd C:\\Program Files (x86)\\swipl\\bin & swipl.exe -q -f " + LocalPath + "\\vamtl.pl" + '\u0022';
  4. proc.StartInfo.UseShellExecute = false;
  5. proc.StartInfo.RedirectStandardOutput = true;
  6. proc.StartInfo.RedirectStandardInput = true;
  7. proc.StartInfo.CreateNoWindow = true;
  8. proc.Start();
  9. proc.StandardInput.WriteLine("set_prolog_flag(answer_write_options,[quoted(true),portray(true),spacing(next_argument)]).");
  10. proc.StandardInput.WriteLine("startVAMTL([" + edges + "," + vertexes + ",end_of_file],R)");
  11. proc.StandardInput.WriteLine(".");
  12. proc.StandardInput.Close();
  13. proc.WaitForExit();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement