Hi,
I am looking for a solution to find out if a file is opened in a
windows (NT oder W2k or XP) application.
For office documents it seems to be clear: trying to open the document
exclusively - if that is succesful, the document is not opened.
But what can I do if I want to know if, for example, a text file is
opened in notepad? If you want you can rename or delete the file while
it is opened in notepad. I think it's the same for documents in wordpad
or images in paint. In this case the file always can be opened
exclusively.
Maybe it is possible to run a VBScript that checks the running
aplications and their window titles? But thinking about that I see two
problems:
1. consider 2 text files c:\dir1\test.txt and c:\dir2\test.text (same
file names but different directories. If both of these files are opened
in notepad I would have two windows using the same title "test.txt -
Notepad". Is there a chance to find out which file is opened in which
notepad?
2. Consider applications that open all documents in one window. In this
case you will have only one application window using different window
titles depending on the document that is in front.
I hope, someone has an idea how to find a solution. Thanks very much in
advance!
Frank