Here's my problem I'd like to run dos command in C #. net. DOS command lazicsasalaki.exe Fajl1.ekt ...
Here's my problem
I'd like to run dos command in C #. net.
DOS command lazicsasalaki.exe Fajl1.ekt Fajl2.ekt> SAŠA.tkt
actually I do not know how can I get C # to use DOS command> and the records in the file SAŠA.tkt
Here's the code
string[] ovoHocuDaSojim = new string[25];
string[] ImenaFajlova = new string[25];
int brojacFajlova = 0;
OpenFileDialog ofDlg = new OpenFileDialog();
ofDlg.Multiselect = true;
if (ofDlg.ShowDialog() == DialogResult.OK)
{
foreach (string filename in ofDlg.FileNames)
{
MessageBox.Show(filename);
brojacFajlova = brojacFajlova + 1;// brojac izabranih fajlova
ovoHocuDaSojim[brojacFajlova] = filename;// imena fajlova sa putanjama
string strFileName1 = System.IO.Path.GetFileName(filename);// uzimam iz openfile dijalog prozora samo imena izabranih fajlova
ImenaFajlova[brojacFajlova] = strFileName1;// izabrana imena fajlova slazem u niz
}
}
string spojeno = " " + ImenaFajlova[1] + " " + ImenaFajlova[2] + " > SASA.TXT";
// string spojeno = " +qc+config+l Baji222S.12o";
var process = System.Diagnostics.Process.Start("lazicSasaLaki.exe",spojeno);
process.WaitForExit();
var result = process.ExitCode;