Is there a way to check if lotus notes client running or open using C# .NET
Asked
Active
Viewed 525 times
2 Answers
1
I don't know what the process name for Lotus Notes Client would be - but you absolutely should be able to.
Here is a sample for finding notepad.
Process[] notepads = Process.GetProcessesByName("notepad");
If the Process[] is empty, it means no match was found. If it's not empty, it means an instance is running on the local machine.

Rob P.
- 14,921
- 14
- 73
- 109
1
Lotus Notes has several processes, I suggest you check for nlnotes.exe and notes2.exe. If one of these exists, Notes is running (version 8+)

Michael Ruhnau
- 1,399
- 1
- 7
- 15
-
I tried below code. its giving "{System.Diagnostics.Process[0]}" even though lotus notes client not opened. Process[] lnotes = Process.GetProcessesByName("nlnotes.exe") – Jayakishor Nov 09 '12 at 09:14
-
Why don't you try something like that: http://www.dotnetperls.com/process-getprocesses Walk through a loop all processes currently running and check for the names? For testing you first could see and check which processes are running when Notes is started and then modify the script to match your needs. – Michael Ruhnau Nov 13 '12 at 19:31