- Eduardo G.
- PowerBuilder
- Friday, 23 October 2020 06:40 AM UTC
Good morning,
How do I know if an MS Word document is open?
You have to take into account that the user can have several MS Word documents open, but I want to know if one is open in order to avoid opening it.
Thank you.
SOLUTION:
I solved it using the Handle.exe application from Sysinternals by Microsoft.
This executable returns if a filename is being used and also tells you the full path as the application that uses it.
Example:
handle.exe -nobanner test.docx
Result:
WINWORD.EXE pid: 3876 type: File 1454: C:\process\test.docx
Find Questions by Tag
Helpful?
If a reply or comment is helpful for you, please don’t hesitate to click the Helpful button. This action is further confirmation of their invaluable contribution to the Appeon Community.