Check if Adobe Acrobat Reader is open and get the filename of the pdf
-
13-10-2019 - |
سؤال
I am searching a way to check with C#, if there is an open Adobe Acrobat Reader and when it is, get the filename with the path of the open PDF.
Can someone give me a tipp?
Thank you.
Best Regards, Thomas
المحلول
something close to your requirement
نصائح أخرى
you can get this working with Process class.
Process[] acrobats = Process.GetProcessesByName("Acrord32");
foreach (Process p in acrobats)
{
Console.WriteLine(p.MainWindowTitle);
}
Hope this gives a clue...
لا تنتمي إلى StackOverflow