I'm trying to execute a batch file in C#, but I'm not getting any luck doing it.

I've found multiple examples on the Internet doing it, but it is not working for me.

```
public void ExecuteCommand(string command)
{
    int ExitCode;
    ProcessStartInfo ProcessInfo;
    Process Process;

    ProcessInfo = new ProcessStartInfo("cmd.exe", "/c " + command);
    ProcessInfo.CreateNoWindow = true;
    ProcessInfo.UseShellExecute = false;

    Process = Process.Start(ProcessInfo);
    Process.WaitForExit();

    ExitCode = Process.ExitCode;
    Process.Close();

    MessageBox.Show("ExitCode: " + ExitCode.ToString(), "ExecuteCommand");
}

```

The command string contains the name of the batch file (stored in `system32`) and some files it should manipulate. (Example: `txtmanipulator file1.txt file2.txt file3.txt`). When I execute the batch file manually, it works correctly.

When executing the code, it gives me an `**ExitCode: 1** (Catch all for general errors)`

What am I doing wrong?