0

This might be a very specific question, but how do I execute a batch file in a sub folder above the c# application; I am trying to reference the batch file using a button:

    private void testButton_Click(object sender, EventArgs e)
    {
        System.Diagnostics.Process.Start("test.bat");
    }
Boolean
  • 163
  • 12
  • possible duplicate of [Run Command Prompt Commands](http://stackoverflow.com/questions/1469764/run-command-prompt-commands) – Kamiccolo Feb 26 '15 at 21:30

1 Answers1

0

Try

private void testButton_Click(object sender, EventArgs e)
{
    System.Diagnostics.Process.Start(@"..\test.bat");
}
h__
  • 761
  • 3
  • 12
  • 41