Anonymous user
Execute a system command: Difference between revisions
→{{header|C sharp|C#}}
(→{{header|Forth}}: ++ fortran) |
|||
Line 53:
=={{header|C sharp|C#}}==
Using Windows / .NET:
<lang csharp>using System.Diagnostics;
namespace Execute
{
class Program
{
static void Main(string[] args)
{
Process.Start("cmd.exe", "/c dir");
}
}
}</lang>
{{works with|MCS|1.2.3.1}}
class Execute {
Line 63 ⟶ 77:
proc.Start();
}
}</lang>
=={{header|dc}}==
|