I am trying to execute a batch file with the given code below
private void buttonDisable_Click(object sender, EventArgs e)
{
System.Diagnostics.Process si = new System.Diagnostics.Process();
si.StartInfo.FileName = "Q:\\disable.bat";
si.Start();
}
But it just comes up with this error :
An unhandled exception of type 'System.ComponentModel.Win32Exception' occurred in System.dll
Additional information: The system cannot find the file specified
The file does exist in the location