RosettaCodeData/Task/Execute-a-system-command/C-sharp/execute-a-system-command-2.cs

11 lines
248 B
C#
Raw Permalink Normal View History

2023-07-01 11:58:00 -04:00
using System;
class Execute {
static void Main() {
System.Diagnostics.Process proc = new System.Diagnostics.Process();
proc.EnableRaisingEvents=false;
proc.StartInfo.FileName="ls";
proc.Start();
}
}