I recently saw this tutorial (please see before proceding). I tried it and it works fine. I want to write a program that will accomplish the same result, using a GUI. see image-
Specifically, i want the c# equivalent of:
Copy \B SrcImage + SrcArchive Result
where SrcImage
, SrcArchive
and Result
are strings pointing to three files.
Does anyone know what I can do?
UPDATE #1: I tried this:
//Writing a batch file containing the desired code in batch file
//language, and running it from a c# form.
string BackSlashB = "-b";
string lines = "@echo off \r copy "+ BackSlashB +" " + SrcJpg + " + " + SrcRar + " " + Destfile + " \r pause";
MessageBox.Show(lines);
System.IO.StreamWriter batchfile = new System.IO.StreamWriter("c:\\temp.bat");
batchfile.WriteLine(lines);
batchfile.Close();
System.Diagnostics.Process.Start("c:\\temp.bat");
A console window opens up and then disappears before i can read it's contents... Any ideas?