I need to write a windows form app, WPF, or console application that should run this from a command prompt:
@echo off
echo test
or
del c:\b.txt
The c# code needs to be on a button but It's not important now. I tried this:
    using System;
    using System.Diagnostics;
    using System.ComponentModel;
    private void button1_Click(object sender, EventArgs e)
    {
        Process process = new Process();
        process.StartInfo.FileName = "cmd.exe";
        //process.StartInfo.WorkingDirectory = "c:\temp";
        //process.StartInfo.Arguments = "somefile.txt";
        Process.Start("cmd", "/dir");
    }
but i can't put my CMD code in this ^ code.
 
    