开发者

Check if Adobe Acrobat Reader is open and get the filename of the pdf

开发者 https://www.devze.com 2023-02-06 05:09 出处:网络
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.

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/

0

精彩评论

暂无评论...
验证码 换一张
取 消