Re: Find out if other process is accessing a file?
- From: "Kevin Spencer" <unclechutney@xxxxxxxxxxxx>
- Date: Mon, 2 Apr 2007 13:25:21 -0400
If you attempt to open the file and get an exception, another process is
using it. Use a try/catch block.
--
HTH,
Kevin Spencer
Microsoft MVP
Printing Components, Email Components,
FTP Client Classes, Enhanced Data Controls, much more.
DSI PrintManager, Miradyne Component Libraries:
http://www.miradyne.net
"Carl" <carlz@xxxxxxxxxxxxxxxx> wrote in message
news:OWrdWsTdHHA.4616@xxxxxxxxxxxxxxxxxxxxxxx
Hi
Is it possible to find out if another process is using a paticular file
(xml)? There does not seem to be anything useful in the File och
Filestream class for this purpose.
regards
Carl
.
- References:
- Prev by Date: Re: vb.net and sockets bug?
- Next by Date: Re: Does .net Framework 3.0 standalone?
- Previous by thread: Find out if other process is accessing a file?
- Next by thread: RE: Find out if other process is accessing a file?
- Index(es):
Relevant Pages
|
Loading