Advertisement
Guest User

Untitled

a guest
Feb 21st, 2019
63
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.39 KB | None | 0 0
  1. string cmdText;
  2. cmdText = @"C++HeaderConversionToQFASTXML.exe " + " " + textBox1.Text + " " + textBox2.Text;
  3. ProcessStartInfo info = new ProcessStartInfo("cmd.exe");
  4. info.UseShellExecute = false;
  5. info.RedirectStandardInput = true;
  6. info.RedirectStandardOutput = true;
  7. info.CreateNoWindow = true;
  8. info.WorkingDirectory = @"C:forAbishekC++HeaderConversionToQFASTXMLRelease";
  9. Process p = Process.Start(info);
  10. p.StandardInput.WriteLine(cmdText);
  11.  
  12. string cmdText;
  13. cmdText = @"C++HeaderConversionToQFASTXML.exe " + " " + textBox1.Text + " " + textBox2.Text;
  14. ProcessStartInfo info = new ProcessStartInfo("cmd.exe");
  15. info.UseShellExecute = false;
  16. info.RedirectStandardInput = true;
  17. info.RedirectStandardOutput = true;
  18. info.CreateNoWindow = true;
  19. String path = System.Reflection.Assembly.GetExecutingAssembly().Location;
  20. path = System.IO.Path.GetDirectoryName(path);
  21. Directory.SetCurrentDirectory(path);
  22. MessageBox.Show(path);
  23. info.WorkingDirectory = path;
  24. Process p = Process.Start(info);
  25. p.StandardInput.WriteLine(cmdText);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement