Posted By

amitkenny on 10/08/10


Tagged

process detect aplication


Versions (?)

Who likes this?

2 people have marked this snippet as a favorite

Tyster
ovuncgursoy


Detect an application or process running on the system


 / Published in: C#
 

  1. Process[] localprocesses;
  2. while(true)
  3. {
  4.  
  5. localprocesses = Process.GetProcessesByName("application name");
  6.  
  7. if (localprocesses.Length > 0)
  8. {
  9.  
  10.  
  11. Console.SetWindowPosition(0, 0);
  12. Console.SetWindowSize(Console.LargestWindowWidth, Console.LargestWindowHeight);
  13. Console.Beep(1400, 1000);
  14. }
  15. }

Report this snippet  

You need to login to post a comment.