Guest User

Untitled

a guest
Jun 10th, 2021
249
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.91 KB | None | 0 0
  1.             if (elfendb.checkfilepath("MS_SETUP", "Description"))
  2.             {
  3.                 System.Diagnostics.Process process = System.Diagnostics.Process.Start(elfendb.Checkfilepathlocations("MS_SETUP"));
  4.  
  5.                 while (true)
  6.                 {
  7.                     string message = CheckIfProcessIsRunning("Microsoft Office Click-to-Run Client") ? "True" : "NFalse";
  8.                     Console.WriteLine(message);
  9.                     Thread.Sleep(10000);
  10.                 }
  11.                
  12.  
  13.  
  14.                 //while (!process.HasExited && process.Responding)
  15.                 //{
  16.                     //running while keep running stay here and loop but does not goes though once and breaks out.
  17.                 //}
  18.  
  19.  
  20. image showing process list,
  21. https://i.imgur.com/Mx90xcR.png
  22. Details tab
  23. https://i.imgur.com/OUjHVfh.png
  24.  
  25. // sorry would not let me post this on form so have to do it this way.
Advertisement
Add Comment
Please, Sign In to add comment