Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- string cmdText;
- cmdText = @"C++HeaderConversionToQFASTXML.exe " + " " + textBox1.Text + " " + textBox2.Text;
- ProcessStartInfo info = new ProcessStartInfo("cmd.exe");
- info.UseShellExecute = false;
- info.RedirectStandardInput = true;
- info.RedirectStandardOutput = true;
- info.CreateNoWindow = true;
- info.WorkingDirectory = @"C:forAbishekC++HeaderConversionToQFASTXMLRelease";
- Process p = Process.Start(info);
- p.StandardInput.WriteLine(cmdText);
- string cmdText;
- cmdText = @"C++HeaderConversionToQFASTXML.exe " + " " + textBox1.Text + " " + textBox2.Text;
- ProcessStartInfo info = new ProcessStartInfo("cmd.exe");
- info.UseShellExecute = false;
- info.RedirectStandardInput = true;
- info.RedirectStandardOutput = true;
- info.CreateNoWindow = true;
- String path = System.Reflection.Assembly.GetExecutingAssembly().Location;
- path = System.IO.Path.GetDirectoryName(path);
- Directory.SetCurrentDirectory(path);
- MessageBox.Show(path);
- info.WorkingDirectory = path;
- Process p = Process.Start(info);
- p.StandardInput.WriteLine(cmdText);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement