I know of no way to do this easily, or even conveniently. I have found that
the most optimal way is simply to attempt to perform an operation on the
file, using a Try/Catch. If the operation fails, the Exception will mention
that the file is already in use, and you can handle it by trying again, or
some other means.
--
HTH,
Kevin Spencer
Microsoft MVP
..Net Developer
You can lead a fish to a bicycle,
but it takes a very long time,
and the bicycle has to *want* to change.
"Ken Adams" <ho*********@hotmail.com> wrote in message
news:FYkxf.76982$AP5.60675@edtnps84...
Hello there, basically I have a little app that goes through a list of
files and renames them according to some selectable options and all I need
to know is how to check if the file is in use by someother process or
application before I attempt to process it. It seems this should be a
simple task, but any help would be appreciated.
Cleave