Check if Adobe Acrobat Reader is open and get the filename of the pdf
I am searching a way to check with C#, if there开发者_如何学Go 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
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...
something close to your requirement
http://social.msdn.microsoft.com/Forums/en-US/csharpgeneral/thread/a298349a-a59a-4c6e-ad42-bd9f0cf80fb0/
精彩评论