Hi all
i am trying to imolement a code to run a batch file. But its throwing
error
"No application is associated with the specified file for this
operation"
The code which i am implementing is
private void InstallDefectService()
{
try
{
string strFilePath = @"C:\Program Files\adi
\DefectTrackingCOMAddinSetup\InstallService.bat";
System.Diagnostics.Process ProcService = new
System.Diagnostics.Process();
System.Diagnostics.ProcessStartInfo procInfo = new
System.Diagnostics.ProcessStartInfo();
procInfo.UseShellExecute = true;
procInfo.FileName = strFilePath;
ProcService = System.Diagnostics.Process.Start(procInfo.FileName );
}
catch(Exception ex)
{
MessageBox.Show(ex.Message.ToString());
}
}
Please assist
Regards
Shantanu