Dear Greg,
unfortunatelly there is no easy way.
If the application that open the file also locked it (like
Word or Excel) you get an error if you try to open the file.
Notepad, for example, does not do it.
The hard way is to use NetFileEnum (not so easy from VB, and with
different usage from 95/98 and NT) to retrive open resources.
Or the Active Directory services (never tried).
I do not know if the FileSystemObject has something similar.
If you have control on opening the file, you can open and
lock it, so you get an error when you open it again (this is what
I did, and this is why I know something on this subject)
Sorry that I cannot be of more help, this is not easy. Please
do search the web for the keywords I mentioned before for more
information.
If anyone found a good solution, I am interested too.
Marco
> how can I check to see if a file is already open ?