Check Process Instance


/ Published in: C#
Save to your folder(s)



Copy this code and paste it in your HTML
  1. using System.Diagnostics;
  2.  
  3. if (Process.Getprocessbyname(Process.Getcurrentprocess().ProcessName).Length >1)
  4. {
  5. MessageBox.show("Another instance of this process is already running");
  6. Application.Exit();
  7. }

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.