My Process is GCC.exe which is in the same folder as my executable.
My target is to pass a file as an argument in gcc and produce the compiled file.
Why is this not working?
private void btnc_Click(object sender, EventArgs e)
{
Process GCC = new Process();
GCC.StartInfo.FileName = "gcc.exe" ;
GCC.StartInfo.Arguments = this.sourcefile.Text;
GCC.Start();
GCC.Close();
}
GCC.Start();starts a process asynchronously whileGCC.Close();kills it. So, skipClose().