I have a C# 2008/2010 application that is currently accessed as an exe file. I would like to change the application that calls the program in a 'faster and/or better' manner. The contract shop that saw the code says there is a 'faster and/or better' method but I do not know what that method would be. The contract shop went out of business so I can not ask them this question.
The code in the calling program looks like the following:
strConsoleAppLocation = ConfigurationManager.AppSettings["dll_location"];
string Process_Arguments = null;
Process RPT_Process = new Process();
RPT_Process.StartInfo.FileName = strConsoleAppLocation;
Process_Arguments = " 7 " + strCUSTID + " 1";
RPT_Process.StartInfo.Arguments = Process_Arguments;
RPT_Process.Start();
RPT_Process.WaitForExit();
RPT_Process.Dispose();
Thus can you tell or show me code on how to access this code in a 'better or faster' manner from the calling program?
The code in the calling program looks like the following:
strConsoleAppLocation = ConfigurationManager.AppSettings["dll_location"];
string Process_Arguments = null;
Process RPT_Process = new Process();
RPT_Process.StartInfo.FileName = strConsoleAppLocation;
Process_Arguments = " 7 " + strCUSTID + " 1";
RPT_Process.StartInfo.Arguments = Process_Arguments;
RPT_Process.Start();
RPT_Process.WaitForExit();
RPT_Process.Dispose();
Thus can you tell or show me code on how to access this code in a 'better or faster' manner from the calling program?
Last edited: