Jump to content

Test for a particular open file?


Recommended Posts

Guest £Jim
Posted

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

--

  • Replies 3
  • Created
  • Last Reply

Popular Days

Guest Pegasus \(MVP\)
Posted

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.

Guest £Jim
Posted

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?

--

Guest Pegasus \(MVP\)
Posted

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 http://www.sysinternals.com.


×
×
  • Create New...