Category Archives: System & API
How to Check whether the application/process is running or not by passing the process name
Here is the awesome VB.Net code to check whether the application/process is running or not by passing the process name: Module modMain Sub Main() ‘Check whether acrobat is running or not If IsProcessRunning(“acrobat”) Then Console.WriteLine(“Yes. Acrobat is running”) Else Console.WriteLine(“No. … Continue reading
How to Check whether a Windows Service is running or not by passing the service name
Here is the awesome VB.Net code to check whether the windows service is running or not by passing the service name: Instructions: Open a New Console application Add a new bas module called modMain Set a reference to System.ServiceProcess (Go … Continue reading
How to properly terminate the application by passing the process name
We should not directly kill the process. We should properly close the main window of the application using CloseMainWindow(). Here is the proper way of terminating the application in VB.Net. The code below will request the application to close properly … Continue reading
