هذا المثال لتشغيل أمر من أوامر دوس حيث يعرض الملفات حسب الاختيار المحدد
System.Diagnostics.Process p = new System.Diagnostics.Process(); p.StartInfo.FileName = "cmd"; p.StartInfo.Arguments = "/k dir *.txt/p"; p.Start();
الكود مرة أخرى
System.Diagnostics.Process p = new System.Diagnostics.Process();
p.StartInfo.FileName = "cmd";
p.StartInfo.Arguments = "/k dir *.txt/p";
p.Start();