Etiket: cmd.exe

C#’da Command Komutları

Ağustos 4th, 2008

C# da Cmd.exe ile bir komut çalıştırmak istiyorsak aşağıdaki komutu kullanabiliriz.

string arguments = “/C C:\\Windows\\xyz.exe -h -blabla”;

System.Diagnostics.Process.Start(“cmd.exe”,arguments);

yok eğer ben cmd.exe falan istemiom direkt bir dosya açaçam diyosanız ise

System.Diagnostics.Process.Open(“blabla.txt”);

komutunu kullanabilirsiniz.

Tags: , , , , , ,
Posted in .NeT 2008 | No Comments »