Click here to Skip to main content
15,896,557 members
Home / Discussions / C#
   

C#

 
Questionprocess being called by C# app Pin
rachel_m3-Oct-12 18:28
rachel_m3-Oct-12 18:28 
AnswerRe: process being called by C# app Pin
Smart Arab3-Oct-12 20:54
Smart Arab3-Oct-12 20:54 
C#
foreach (PkgID in PkgIDs)
            {
                Process eProcess = new Process();
                String Process_Arguments = null;
                eProcess.StartInfo.UseShellExecute = false;
                eProcess.StartInfo.FileName = strConsoleAppLocation;
                Process_Arguments = filedirectorypath + " 7654" + PkgID;
                eProcess.StartInfo.Arguments = Process_Arguments;
                eProcess.Start();
                eProcess.WaitForExit();  // Modified 
                System.Threading.Thread.Sleep (1800); // Added 
                eProcess = null; //Deleted
                Process_Arguments = null; //Deleted
            }

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.