Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在寻找一种使用 C# 检查的方法,如果有一个打开的 Adobe Acrobat Reader,当它存在时,使用打开的 PDF 的路径获取文件名。
有人可以给我小费吗?
谢谢你。
最好的问候,托马斯
您可以使用 Process 类来实现这一点。
Process[] acrobats = Process.GetProcessesByName("Acrord32"); foreach (Process p in acrobats) { Console.WriteLine(p.MainWindowTitle); }
希望这能提供线索...
接近你要求的东西
http://social.msdn.microsoft.com/Forums/en-US/csharpgeneral/thread/a298349a-a59a-4c6e-ad42-bd9f0cf80fb0/