Test for a particular open file?

  • Thread starter Thread starter £Jim
  • Start date Start date
£

£Jim

Guest
Hi,
I would like to be able to find out if a particluar file on a Windows
2003 server is open (and if possible who has it open). Is there a way
to do that programmatically?
Thanks
--
 
Re: Test for a particular open file?


"£Jim" <hoo.me@some.net> wrote in message
news:xn0fppa45jykvvh000@msnews.microsoft.com...
> Hi,
> I would like to be able to find out if a particluar file on a Windows
> 2003 server is open (and if possible who has it open). Is there a way
> to do that programmatically?
> Thanks
> --


Try this:
net file | find /i "xxx.doc"
where "xxx.doc" is the name of the file you're after.
 
Re: Test for a particular open file?

Thanks! That looks like it works. Is there a way to add a remote server
as a parameter, or must it run on the server itself?
--
 
Re: Test for a particular open file?


"£Jim" <hoo.me@some.net> wrote in message
news:xn0fppe28k3v07a000@msnews.microsoft.com...
> Thanks! That looks like it works. Is there a way to add a remote server
> as a parameter, or must it run on the server itself?
> --


Use psexec.exe from www.sysinternals.com.
 
Back
Top