public void checkUPX() { Process checkupx; //string ofile = @"D:\Immunity\ImmunityApp\ImmunityFormApp1\bin\upx\upxresults.txt"; try { checkupx = new Process(); // set start info checkupx.StartInfo = new ProcessStartInfo(@"C:\Users\niluf\Desktop\Immunity\ImmunityApp\ImmunityFormApp1\bin\upx\cmd.exe") { RedirectStandardInput = true, UseShellExecute = false, WorkingDirectory = @"C:\Users\niluf\Desktop\Immunity\ImmunityApp\ImmunityFormApp1\bin\upx\" }; checkupx.StartInfo.CreateNoWindow = true; // start process checkupx.Start(); // send command to its input checkupx.StandardInput.Write("upx.exe -t " + fullFileName + " > upxresults.txt" + checkupx.StandardInput.NewLine); } catch (Exception ex) { Console.WriteLine(ex); } StaticScan S1 = new StaticScan(); this.Hide(); S1.getFileName(fileName, fullFileName); S1.ShowDialog(); this.Close(); }
private void button8_Click(object sender, EventArgs e) { StaticScan S1 = new StaticScan(); S1.deleteFile(fullFileName); }