Click here to Skip to main content
11,438,226 members (74,324 online)
   

C#

 
Questionprocess being called by C# app Pin
rachel_m3-Oct-12 19:28
memberrachel_m3-Oct-12 19:28 
AnswerRe: process being called by C# app Pin
Smart Arab3-Oct-12 21:54
memberSmart Arab3-Oct-12 21:54 
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    Rant Rant    Admin Admin   

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


Advertise | Privacy | Mobile
Web03 | 2.8.150506.1 | Last Updated 6 May 2015
Copyright © CodeProject, 1999-2015
All Rights Reserved. Terms of Service
Layout: fixed | fluid