17 Aralık 2014 Çarşamba

C# tan Komut İstemi (cmd) ye Kod Gönderme

System.Diagnostics.Process process = new System.Diagnostics.Process();
System.Diagnostics.ProcessStartInfo stratInfo = new System.Diagnostics.ProcessStartInfo();
stratInfo.WindowStyle = System.Diagnostics.ProcessWindowStyle.Hidden;
stratInfo.FileName = "cmd.exe";
stratInfo.Arguments = "/C shutdown -f";
process.StartInfo = stratInfo;
process.Start();
Paylaş:

0 yorum:

Yorum Gönder

Popüler

Son

Kategoriler

Arşiv